diff --git a/zha/zigbee/group.py b/zha/zigbee/group.py index a147045d..51b36d8b 100644 --- a/zha/zigbee/group.py +++ b/zha/zigbee/group.py @@ -116,7 +116,8 @@ def associated_entities(self) -> list[PlatformEntity]: return [ platform_entity for platform_entity in self._device.platform_entities.values() - if platform_entity.endpoint.id == self.endpoint_id + if hasattr(platform_entity, "endpoint") + and platform_entity.endpoint.id == self.endpoint_id ] async def async_remove_from_group(self) -> None: