[python] Missing int conversion

This commit is contained in:
giuliof 2019-08-19 17:19:05 +02:00
parent 61978782c1
commit 0bc765b82e
1 changed files with 1 additions and 1 deletions

View File

@ -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")