Skip to content

Commit

Permalink
Prevent AirVisual from polling (#36199)
Browse files Browse the repository at this point in the history
* Prevent AirVisual from polling

* Docstring
  • Loading branch information
bachya authored May 27, 2020
1 parent f626129 commit 6609bd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions homeassistant/components/airvisual/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,11 @@ def icon(self):
"""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."""
Expand Down

0 comments on commit 6609bd9

Please sign in to comment.