mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Set should_poll for zone entities (#43212)
This commit is contained in:
parent
eb9e9e67f0
commit
869cb83170
@ -325,6 +325,11 @@ class Zone(entity.Entity):
|
|||||||
"""Return the state attributes of the zone."""
|
"""Return the state attributes of the zone."""
|
||||||
return self._attrs
|
return self._attrs
|
||||||
|
|
||||||
|
@property
|
||||||
|
def should_poll(self) -> bool:
|
||||||
|
"""Zone does not poll."""
|
||||||
|
return False
|
||||||
|
|
||||||
async def async_update_config(self, config: Dict) -> None:
|
async def async_update_config(self, config: Dict) -> None:
|
||||||
"""Handle when the config is updated."""
|
"""Handle when the config is updated."""
|
||||||
if self._config == config:
|
if self._config == config:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user