mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix modbus setting string as temperature in climate platform (#53249)
This commit is contained in:
parent
034251f006
commit
059a9bc8ed
@ -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…
x
Reference in New Issue
Block a user