Skip to content

Commit

Permalink
Removed doubtful battery error detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed Jan 14, 2021
1 parent 9da8a9a commit b6d5e47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions custom_components/jablotron100/jablotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
JABLOTRON_UI_CONTROL_MODIFY_SECTION = b"\x0d"
JABLOTRON_UI_CONTROL_TOGGLE_PG_OUTPUT = b"\x23"

JABLOTRON_DEVICE_PACKET_TYPE_BATTERY_FAULT = 4
JABLOTRON_DEVICE_PACKET_TYPE_POWER_SUPPLY_FAULT = 5
JABLOTRON_DEVICE_PACKET_TYPE_SABOTAGE = 6
JABLOTRON_DEVICE_PACKET_TYPE_FAULT = 7
Expand Down Expand Up @@ -1372,7 +1371,6 @@ def _is_device_state_packet_for_activity(packet_type: int) -> bool:
@staticmethod
def _is_device_state_packet_for_fault(packet_type: int) -> bool:
return packet_type in [
JABLOTRON_DEVICE_PACKET_TYPE_BATTERY_FAULT,
JABLOTRON_DEVICE_PACKET_TYPE_POWER_SUPPLY_FAULT,
JABLOTRON_DEVICE_PACKET_TYPE_SABOTAGE,
JABLOTRON_DEVICE_PACKET_TYPE_FAULT,
Expand Down

0 comments on commit b6d5e47

Please sign in to comment.