Use _attr_should_poll in components [a-g] (#77268)
This commit is contained in:
parent
120c76524d
commit
a46c25d2c8
18 changed files with 37 additions and 95 deletions
|
@ -112,6 +112,8 @@ async def async_setup_platform(
|
|||
class GenericHygrostat(HumidifierEntity, RestoreEntity):
|
||||
"""Representation of a Generic Hygrostat device."""
|
||||
|
||||
_attr_should_poll = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
name,
|
||||
|
@ -218,11 +220,6 @@ class GenericHygrostat(HumidifierEntity, RestoreEntity):
|
|||
return {ATTR_SAVED_HUMIDITY: self._saved_target_humidity}
|
||||
return None
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
"""Return the polling state."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
"""Return the name of the hygrostat."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue