mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Fix modbus setting string as temperature in climate platform (#53249)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user