Only subscribe to relevant IDs for state updates (#85252)
Make sure to only subscribe to the relevant IDpull/85277/head
parent
9c689d757c
commit
8bf2299407
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue