Set should_poll for zone entities (#43212)

pull/43267/head
J. Nick Koston 2020-11-15 07:40:03 -10:00 committed by GitHub
parent eb9e9e67f0
commit 869cb83170
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -325,6 +325,11 @@ class Zone(entity.Entity):
"""Return the state attributes of the zone."""
return self._attrs
@property
def should_poll(self) -> bool:
"""Zone does not poll."""
return False
async def async_update_config(self, config: Dict) -> None:
"""Handle when the config is updated."""
if self._config == config: