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 authored and springstan committed 2020-01-17 17:08:30 +01:00
1 parent d63ea198f2
commit da368f0cb8
4 files changed
+8 -3

No files matched your search

@@ -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()