mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Update greeneye_monitor sensor state when first connected to a monitor (#58587)
This commit is contained in:
parent
3a76d92e0f
commit
d1474d8e92
@ -136,6 +136,7 @@ class GEMSensor(SensorEntity):
|
|||||||
|
|
||||||
self._sensor = self._get_sensor(monitor)
|
self._sensor = self._get_sensor(monitor)
|
||||||
self._sensor.add_listener(self.async_write_ha_state)
|
self._sensor.add_listener(self.async_write_ha_state)
|
||||||
|
self.async_write_ha_state()
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user