[python] Missing int conversion
This commit is contained in:
parent
61978782c1
commit
0bc765b82e
|
@ -145,7 +145,7 @@ class DomoticGateway:
|
|||
|
||||
# Temperature ()
|
||||
try:
|
||||
status |= CLIMA_TEMPERATURES[temperature] << 4
|
||||
status |= CLIMA_TEMPERATURES[int(temperature) - BASE_TMP] << 4
|
||||
except:
|
||||
# NO! throw exception
|
||||
print ("Invalid clima option")
|
||||
|
|
Loading…
Reference in New Issue