Skip to content

Commit

Permalink
Transform command code to uppercase
Browse files Browse the repository at this point in the history
  • Loading branch information
osk2 committed Sep 20, 2021
1 parent 3318bef commit 35945d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/panasonic_smart_app/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def device_class(self) -> str:
@property
def is_on(self) -> int:
status = self.coordinator.data[self.index]["status"]
_turbo_status = status.get("0x1a", None)
_turbo_status = status.get("0x1A", None)
if _turbo_status == None:
return STATE_UNAVAILABLE
_is_on = bool(int(_turbo_status))
Expand Down

0 comments on commit 35945d5

Please sign in to comment.