Fix ZHA force polled entities. (#22222)
## 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
This commit is contained in:
parent
01d8b5831e
commit
9653544144
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ class ZhaEntity(RestoreEntity, entity.Entity):
|
|||
|
||||
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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue