diff --git a/custom_components/jablotron100/jablotron.py b/custom_components/jablotron100/jablotron.py index 39e8650..dd32606 100644 --- a/custom_components/jablotron100/jablotron.py +++ b/custom_components/jablotron100/jablotron.py @@ -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])