mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
Only subscribe to relevant IDs for state updates (#85252)
Make sure to only subscribe to the relevant ID
This commit is contained in:
@@ -217,6 +217,7 @@ class UnifiSensorEntity(SensorEntity, Generic[_HandlerT, _DataT]):
|
||||
self.async_on_remove(
|
||||
handler.subscribe(
|
||||
self.async_signalling_callback,
|
||||
id_filter=self._obj_id,
|
||||
)
|
||||
)
|
||||
self.async_on_remove(
|
||||
|
@@ -361,6 +361,7 @@ class UnifiSwitchEntity(SwitchEntity, Generic[_HandlerT, _DataT]):
|
||||
self.async_on_remove(
|
||||
handler.subscribe(
|
||||
self.async_signalling_callback,
|
||||
id_filter=self._obj_id,
|
||||
)
|
||||
)
|
||||
self.async_on_remove(
|
||||
|
Reference in New Issue
Block a user