mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 16:57:19 +00:00
Prevent AirVisual from polling (#36199)
* Prevent AirVisual from polling * Docstring
This commit is contained in:
parent
e967c93b7b
commit
ca0149c635
@ -375,6 +375,11 @@ class AirVisualEntity(Entity):
|
||||
"""Return the icon."""
|
||||
return self._icon
|
||||
|
||||
@property
|
||||
def should_poll(self) -> bool:
|
||||
"""Disable polling."""
|
||||
return False
|
||||
|
||||
@property
|
||||
def unit_of_measurement(self):
|
||||
"""Return the unit the value is expressed in."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user