Skip to content

Commit

Permalink
fix: Grouping predicate lambda selector
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrapan committed Aug 14, 2024
1 parent 6771447 commit 6350031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/solarman/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def get_requests(self, runtime = 0):

registers.sort()

groups = group_when(registers, self._lambda if all_same(list(self._registers_table.values())) else self._lambda_code_aware)
groups = group_when(registers, self._lambda if all_same([self._registers_table[r] for r in registers]) else self._lambda_code_aware)

return [{ REQUEST_START: r[0], REQUEST_END: r[-1], REQUEST_CODE: self._registers_table[r[0]] } for r in groups]

Expand Down

0 comments on commit 6350031

Please sign in to comment.