mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
parent
8f8bba4ad7
commit
7882b19dc5
@ -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