Skip to content

Commit

Permalink
Fix ZHA force polled entities. (#22222)
Browse files Browse the repository at this point in the history
## Description:
Fix "force_polled" ZHA entities.

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
  • Loading branch information
Adminiuga authored and balloob committed Mar 21, 2019
1 parent ee1c270 commit a84ba90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/zha/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def async_restore_last_state(self, last_state):

async def async_update(self):
"""Retrieve latest state."""
for channel in self.cluster_channels:
for channel in self.cluster_channels.values():
if hasattr(channel, 'async_update'):
await channel.async_update()

Expand Down

0 comments on commit a84ba90

Please sign in to comment.