Prevent AirVisual from polling (#36199)

* Prevent AirVisual from polling

* Docstring
This commit is contained in:
Aaron Bach 2020-05-27 13:53:14 -06:00 committed by Paulus Schoutsen
parent e967c93b7b
commit ca0149c635

View File

@ -375,6 +375,11 @@ class AirVisualEntity(Entity):
"""Return the icon.""" """Return the icon."""
return self._icon return self._icon
@property
def should_poll(self) -> bool:
"""Disable polling."""
return False
@property @property
def unit_of_measurement(self): def unit_of_measurement(self):
"""Return the unit the value is expressed in.""" """Return the unit the value is expressed in."""