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