Fix empty sonos_group entity attribute on startup (#53985)

This commit is contained in:
jjlawren 2021-08-04 14:57:19 -05:00 committed by Paulus Schoutsen
parent ef55a8d2e2
commit 14621fc445

View File

@ -654,7 +654,11 @@ class SonosSpeaker:
@callback
def _async_regroup(group: list[str]) -> None:
"""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
return