Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from marecabo/patch-1
Browse files Browse the repository at this point in the history
Add attribute with list of member entities
  • Loading branch information
daenny authored Jan 21, 2021
2 parents 2a27463 + d4e8517 commit 0a8eb98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/climate_group/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ def should_poll(self) -> bool:
"""No polling needed for a climate group."""
return False

@property
def device_state_attributes(self):
"""Return the state attributes for the climate group."""
return {ATTR_ENTITY_ID: self._entity_ids}

async def async_set_temperature(self, **kwargs):
"""Forward the turn_on command to all climate in the climate group."""
data = {ATTR_ENTITY_ID: self._entity_ids}
Expand Down

0 comments on commit 0a8eb98

Please sign in to comment.