bump the version and catch all exceptions to avoid showing backtraces… (#9720)

* bump the version and catch all exceptions to avoid showing backtraces but a more sane error message

* catch only BTLEExceptions, fix logging strings
This commit is contained in:
Teemu R 2017-10-07 00:21:34 +02:00 committed by Fabian Affolter
parent f4679cc870
commit d3772d4abd
3 changed files with 8 additions and 4 deletions

View File

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

@ -1 +1 @@
Subproject commit b0791abb9a61216476cb3a637c410cdddef7e91c
Subproject commit 3092a4c08473df6b8643221e2740791fc6c8b03d

View File

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