Exclude coordinator when looking up group members entity IDs (#44058)

This commit is contained in:
Alexei Chetroi 2020-12-08 14:34:26 -05:00 committed by Franck Nijhof
parent 88941eaa51
commit 9cfeb44b56
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -194,6 +194,8 @@ class ZHAGroup(LogMixin):
"""Return entity ids from the entity domain for this group."""
domain_entity_ids: List[str] = []
for member in self.members:
if member.device.is_coordinator:
continue
entities = async_entries_for_device(
self._zha_gateway.ha_entity_registry,
member.device.device_id,