mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Optimize Sonos favorites updates (#43516)
This commit is contained in:
parent
a633341dc9
commit
62da64867c
@ -947,6 +947,7 @@ class SonosEntity(MediaPlayerEntity):
|
|||||||
|
|
||||||
def update_content(self, event=None):
|
def update_content(self, event=None):
|
||||||
"""Update information about available content."""
|
"""Update information about available content."""
|
||||||
|
if event and "favorites_update_id" in event.variables:
|
||||||
self._set_favorites()
|
self._set_favorites()
|
||||||
self.schedule_update_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user