mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 11:18:00 +02:00
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:
@@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['python-eq3bt==0.1.5']
|
REQUIREMENTS = ['python-eq3bt==0.1.6']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -164,4 +164,8 @@ class EQ3BTSmartThermostat(ClimateDevice):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Update the data from the thermostat."""
|
"""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)
|
||||||
|
@@ -748,7 +748,7 @@ python-digitalocean==1.12
|
|||||||
python-ecobee-api==0.0.10
|
python-ecobee-api==0.0.10
|
||||||
|
|
||||||
# homeassistant.components.climate.eq3btsmart
|
# homeassistant.components.climate.eq3btsmart
|
||||||
# python-eq3bt==0.1.5
|
# python-eq3bt==0.1.6
|
||||||
|
|
||||||
# homeassistant.components.sensor.etherscan
|
# homeassistant.components.sensor.etherscan
|
||||||
python-etherscan-api==0.0.1
|
python-etherscan-api==0.0.1
|
||||||
|
Reference in New Issue
Block a user