mirror of
https://github.com/home-assistant/core.git
synced 2025-11-13 13:00:11 +00:00
Update modbus state when sensor fails (#49481)
This commit is contained in:
@@ -294,6 +294,7 @@ class ModbusRegisterSensor(RestoreEntity, SensorEntity):
|
||||
)
|
||||
if result is None:
|
||||
self._available = False
|
||||
self.schedule_update_ha_state()
|
||||
return
|
||||
|
||||
registers = result.registers
|
||||
|
||||
Reference in New Issue
Block a user