Prevent AirVisual from polling (#36199)

* Prevent AirVisual from polling

* Docstring
pull/36204/head
Aaron Bach 2020-05-27 13:53:14 -06:00 committed by GitHub
parent f626129e2b
commit 6609bd94e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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."""