Update pyatmo to 3.2.2 and add available attribute (#30882)

* Update pyatmo to 3.2.1

* Update pyatmo to 3.2.2

* Remove accidentally added requirements

* Add availability property
This commit is contained in:
cgtobi 2020-01-17 17:08:30 +01:00 committed by springstan
parent d63ea198f2
commit da368f0cb8
4 changed files with 8 additions and 3 deletions

View File

@ -3,7 +3,7 @@
"name": "Netatmo",
"documentation": "https://www.home-assistant.io/integrations/netatmo",
"requirements": [
"pyatmo==3.2.0"
"pyatmo==3.2.2"
],
"dependencies": [
"webhook"

View File

@ -427,6 +427,11 @@ class NetatmoPublicSensor(Entity):
"""Return the unit of measurement of this entity."""
return self._unit_of_measurement
@property
def available(self):
"""Return True if entity is available."""
return bool(self._state)
def update(self):
"""Get the latest data from Netatmo API and updates the states."""
self.netatmo_data.update()

View File

@ -1137,7 +1137,7 @@ pyalmond==0.0.2
pyarlo==0.2.3
# homeassistant.components.netatmo
pyatmo==3.2.0
pyatmo==3.2.2
# homeassistant.components.atome
pyatome==0.1.1

View File

@ -399,7 +399,7 @@ pyalmond==0.0.2
pyarlo==0.2.3
# homeassistant.components.netatmo
pyatmo==3.2.0
pyatmo==3.2.2
# homeassistant.components.blackbird
pyblackbird==0.5