Skip to content

Commit

Permalink
Merge pull request #32 from sugoi-wada/hotfix/turbo
Browse files Browse the repository at this point in the history
Fix turbo mode status check command
  • Loading branch information
osk2 authored Sep 20, 2021
2 parents 31022da + 35945d5 commit 2b9b55c
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("0x08", 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 2b9b55c

Please sign in to comment.