change type of state

This commit is contained in:
2022-11-24 16:48:14 +01:00
parent a1ecf5a635
commit 707ee88dc3

View File

@ -9,7 +9,7 @@ def floatAdaptor(i):
return float(f"{i:0.2f}") if i else 0.0
def onOffAdaptor(i):
return ('Off' if i[0] == 0 else 'On') if i else 'x'
return i[0] != 0
REGISTERS = [