From d3772d4abdd4aefbd8a839d13bc35df758f82ad1 Mon Sep 17 00:00:00 2001 From: Teemu R Date: Sat, 7 Oct 2017 00:21:34 +0200 Subject: [PATCH] =?UTF-8?q?bump=20the=20version=20and=20catch=20all=20exce?= =?UTF-8?q?ptions=20to=20avoid=20showing=20backtraces=E2=80=A6=20(#9720)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * bump the version and catch all exceptions to avoid showing backtraces but a more sane error message * catch only BTLEExceptions, fix logging strings --- homeassistant/components/climate/eq3btsmart.py | 8 ++++++-- .../components/frontend/www_static/home-assistant-polymer | 2 +- requirements_all.txt | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/climate/eq3btsmart.py b/homeassistant/components/climate/eq3btsmart.py index ff13dd48cac..d70890317fd 100644 --- a/homeassistant/components/climate/eq3btsmart.py +++ b/homeassistant/components/climate/eq3btsmart.py @@ -17,7 +17,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv -REQUIREMENTS = ['python-eq3bt==0.1.5'] +REQUIREMENTS = ['python-eq3bt==0.1.6'] _LOGGER = logging.getLogger(__name__) @@ -164,4 +164,8 @@ class EQ3BTSmartThermostat(ClimateDevice): def update(self): """Update the data from the thermostat.""" - self._thermostat.update() + from bluepy.btle import BTLEException + try: + self._thermostat.update() + except BTLEException as ex: + _LOGGER.warning("Updating the state failed: %s", ex) diff --git a/homeassistant/components/frontend/www_static/home-assistant-polymer b/homeassistant/components/frontend/www_static/home-assistant-polymer index b0791abb9a6..3092a4c0847 160000 --- a/homeassistant/components/frontend/www_static/home-assistant-polymer +++ b/homeassistant/components/frontend/www_static/home-assistant-polymer @@ -1 +1 @@ -Subproject commit b0791abb9a61216476cb3a637c410cdddef7e91c +Subproject commit 3092a4c08473df6b8643221e2740791fc6c8b03d diff --git a/requirements_all.txt b/requirements_all.txt index 1b4e2380195..5d81a45ee8b 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -748,7 +748,7 @@ python-digitalocean==1.12 python-ecobee-api==0.0.10 # homeassistant.components.climate.eq3btsmart -# python-eq3bt==0.1.5 +# python-eq3bt==0.1.6 # homeassistant.components.sensor.etherscan python-etherscan-api==0.0.1