Fix modbus setting string as temperature in climate platform (#53249)
This commit is contained in:
parent
034251f006
commit
059a9bc8ed
1 changed files with 4 additions and 1 deletions
|
@ -207,4 +207,7 @@ class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
|||
self.unpack_structure_result(result.registers)
|
||||
|
||||
self._available = True
|
||||
return self._value
|
||||
|
||||
if self._value is None:
|
||||
return None
|
||||
return float(self._value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue