mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
parent
dba5c74c8f
commit
78cbfa3f96
@ -41,7 +41,7 @@ def get_status():
|
|||||||
|
|
||||||
def get_unit_status(code):
|
def get_unit_status(code):
|
||||||
"""Get on/off status for given unit."""
|
"""Get on/off status for given unit."""
|
||||||
unit = int(code[1])
|
unit = int(code[1:])
|
||||||
return get_status()[16 - int(unit)] == '1'
|
return get_status()[16 - int(unit)] == '1'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user