Skip to content

Commit

Permalink
Ignore PG outputs packets when number of PG outputs is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Dec 18, 2020
1 parent 037250b commit 417b9db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/jablotron100/jablotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,9 @@ def _parse_devices_states_packet(self, packet: bytes) -> None:
)

def _parse_pg_outputs_states_packet(self, packet: bytes) -> None:
if not self._has_pg_outputs():
return

states_start = 2
states_end = states_start + Jablotron.bytes_to_int(packet[1:2])

Expand Down

0 comments on commit 417b9db

Please sign in to comment.