Skip to content

Commit

Permalink
Ignore precise power packet for electricity meter with pulses
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Feb 22, 2022
1 parent 7461501 commit 379c61c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/jablotron100/jablotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,6 +1467,10 @@ def _parse_device_electricity_meter_with_pulse_info_packet(self, packet: bytes,
info_packets = self._parse_device_info_packets_from_device_info_packet(packet)

for info_packet in info_packets:
if info_packet.type == DeviceInfoType.POWER_PRECISE:
# We know the packet but don't know its content
continue

if info_packet.type != DeviceInfoType.PULSE:
self._log_error_with_packet(
"Unexpected info packet {} of electricity meter with pulse".format(Jablotron.format_packet_to_string(info_packet.packet)),
Expand Down

0 comments on commit 379c61c

Please sign in to comment.