mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix empty sonos_group entity attribute on startup (#53985)
This commit is contained in:
parent
316c2baa12
commit
6eae5231f1
@ -654,7 +654,11 @@ class SonosSpeaker:
|
|||||||
@callback
|
@callback
|
||||||
def _async_regroup(group: list[str]) -> None:
|
def _async_regroup(group: list[str]) -> None:
|
||||||
"""Rebuild internal group layout."""
|
"""Rebuild internal group layout."""
|
||||||
if group == [self.soco.uid] and self.sonos_group == [self]:
|
if (
|
||||||
|
group == [self.soco.uid]
|
||||||
|
and self.sonos_group == [self]
|
||||||
|
and self.sonos_group_entities
|
||||||
|
):
|
||||||
# Skip updating existing single speakers in polling mode
|
# Skip updating existing single speakers in polling mode
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user