From 184e254a43405c6add32f15512f0b4075a5ce98e Mon Sep 17 00:00:00 2001 From: Teemu R Date: Tue, 26 Jul 2022 21:50:41 +0200 Subject: [PATCH] Bump python-eq3bt requirement (#75145) --- homeassistant/components/eq3btsmart/climate.py | 3 +-- homeassistant/components/eq3btsmart/manifest.json | 7 ++++--- requirements_all.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/eq3btsmart/climate.py b/homeassistant/components/eq3btsmart/climate.py index 1f95f03bd17..412bb8eddeb 100644 --- a/homeassistant/components/eq3btsmart/climate.py +++ b/homeassistant/components/eq3btsmart/climate.py @@ -3,7 +3,6 @@ from __future__ import annotations import logging -from bluepy.btle import BTLEException # pylint: disable=import-error import eq3bt as eq3 # pylint: disable=import-error import voluptuous as vol @@ -218,5 +217,5 @@ class EQ3BTSmartThermostat(ClimateEntity): try: self._thermostat.update() - except BTLEException as ex: + except eq3.BackendException as ex: _LOGGER.warning("Updating the state failed: %s", ex) diff --git a/homeassistant/components/eq3btsmart/manifest.json b/homeassistant/components/eq3btsmart/manifest.json index 4ad8d08adf5..ade3bc0d912 100644 --- a/homeassistant/components/eq3btsmart/manifest.json +++ b/homeassistant/components/eq3btsmart/manifest.json @@ -1,9 +1,10 @@ { "domain": "eq3btsmart", - "name": "EQ3 Bluetooth Smart Thermostats", + "name": "eQ-3 Bluetooth Smart Thermostats", "documentation": "https://www.home-assistant.io/integrations/eq3btsmart", - "requirements": ["construct==2.10.56", "python-eq3bt==0.1.11"], + "requirements": ["construct==2.10.56", "python-eq3bt==0.2"], + "dependencies": ["bluetooth"], "codeowners": ["@rytilahti"], "iot_class": "local_polling", - "loggers": ["bluepy", "eq3bt"] + "loggers": ["bleak", "eq3bt"] } diff --git a/requirements_all.txt b/requirements_all.txt index 8f89fa07f01..11503aa8f1a 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1893,7 +1893,7 @@ python-digitalocean==1.13.2 python-ecobee-api==0.2.14 # homeassistant.components.eq3btsmart -# python-eq3bt==0.1.11 +# python-eq3bt==0.2 # homeassistant.components.etherscan python-etherscan-api==0.0.3