From 25cb7c652bf1a266829eea142196d1b9fdcec5a2 Mon Sep 17 00:00:00 2001 From: Kevin Fronczak Date: Fri, 12 May 2017 23:30:07 -0400 Subject: [PATCH] Blink version bump (#7571) Bumped blink version to support automatic reauthorization when tokens expire. Changed the battery sensor call to a string version so that the battery reports back "Low" or "OK" rather than a cryptic integer --- homeassistant/components/blink.py | 2 +- homeassistant/components/sensor/blink.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/blink.py b/homeassistant/components/blink.py index 4ae5007d665..a44f0163787 100644 --- a/homeassistant/components/blink.py +++ b/homeassistant/components/blink.py @@ -13,7 +13,7 @@ from homeassistant.const import ( CONF_USERNAME, CONF_PASSWORD, ATTR_FRIENDLY_NAME, ATTR_ARMED) from homeassistant.helpers import discovery -REQUIREMENTS = ['blinkpy==0.5.2'] +REQUIREMENTS = ['blinkpy==0.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sensor/blink.py b/homeassistant/components/sensor/blink.py index e434776ffc6..44557978117 100644 --- a/homeassistant/components/sensor/blink.py +++ b/homeassistant/components/sensor/blink.py @@ -77,7 +77,7 @@ class BlinkSensor(Entity): if self._type == 'temperature': self._state = camera.temperature elif self._type == 'battery': - self._state = camera.battery + self._state = camera.battery_string elif self._type == 'notifications': self._state = camera.notifications else: diff --git a/requirements_all.txt b/requirements_all.txt index 2a10480f3a5..6a684cfc310 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -90,7 +90,7 @@ beautifulsoup4==4.6.0 bellows==0.2.7 # homeassistant.components.blink -blinkpy==0.5.2 +blinkpy==0.6.0 # homeassistant.components.light.blinksticklight blinkstick==1.1.8