Taux d'humidité passé en flottant (lol)

This commit is contained in:
Sasha MOREL 2021-06-09 07:14:37 +02:00
parent 30ce0672d9
commit 09bd724058
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ class Sensor ():
a = self.get_value (self.get_raw (), sensors_temphum_root_field)
for i in a:
if i [1] [sensors_hum_name] == sensors_hum_text:
return (int (i [2].replace ('%', '')))
return (float (i [2].replace ('%', '')))
def get_on_off_state (self):
'''