Skip to content

Commit

Permalink
Add check to associated_entities on GroupMember
Browse files Browse the repository at this point in the history
  • Loading branch information
dmulcahey committed Mar 31, 2024
1 parent b674d21 commit e7e809e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zha/zigbee/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e7e809e

Please sign in to comment.