Bump pyatmo version to 2.3.2 (#27731)

* Bump pyatmo version to 2.3.2

* Add reachable attribute

* Add reachable attribute
pull/27737/head
cgtobi 2019-10-16 12:19:38 +02:00 committed by Pascal Vizeli
parent ec78821161
commit 14d3b9b8f9
3 changed files with 5 additions and 2 deletions

View File

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

View File

@ -80,6 +80,7 @@ SENSOR_TYPES = {
"gustangle": ["Gust Angle", "", "mdi:compass", None],
"gustangle_value": ["Gust Angle Value", "º", "mdi:compass", None],
"guststrength": ["Gust Strength", "km/h", "mdi:weather-windy", None],
"reachable": ["Reachability", "", "mdi:signal", None],
"rf_status": ["Radio", "", "mdi:signal", None],
"rf_status_lvl": ["Radio_lvl", "", "mdi:signal", None],
"wifi_status": ["Wifi", "", "mdi:wifi", None],
@ -375,6 +376,8 @@ class NetatmoSensor(Entity):
self._state = "N (%d\xb0)" % data["GustAngle"]
elif self.type == "guststrength":
self._state = data["GustStrength"]
elif self.type == "reachable":
self._state = data["reachable"]
elif self.type == "rf_status_lvl":
self._state = data["rf_status"]
elif self.type == "rf_status":

View File

@ -1084,7 +1084,7 @@ pyalarmdotcom==0.3.2
pyarlo==0.2.3
# homeassistant.components.netatmo
pyatmo==2.2.1
pyatmo==2.3.2
# homeassistant.components.atome
pyatome==0.1.1