Set should_poll for zone entities (#43212)

This commit is contained in:
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

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: