From 832337f26c541ffc20b717c61d7613cfd47dd2ce Mon Sep 17 00:00:00 2001 From: Mark Coombes Date: Thu, 20 Feb 2020 00:05:22 -0500 Subject: [PATCH] Fix bug in ecobee integration (#32008) * Bump python-ecobee-api to 0.2.1 * Update log messages for clarity * Update requirements_all --- homeassistant/components/ecobee/__init__.py | 6 ++---- homeassistant/components/ecobee/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/ecobee/__init__.py b/homeassistant/components/ecobee/__init__.py index 80c3be7954b..26bfbe5b3da 100644 --- a/homeassistant/components/ecobee/__init__.py +++ b/homeassistant/components/ecobee/__init__.py @@ -96,9 +96,7 @@ class EcobeeData: await self._hass.async_add_executor_job(self.ecobee.update) _LOGGER.debug("Updating ecobee") except ExpiredTokenError: - _LOGGER.warning( - "Ecobee update failed; attempting to refresh expired tokens" - ) + _LOGGER.debug("Refreshing expired ecobee tokens") await self.refresh() async def refresh(self) -> bool: @@ -113,7 +111,7 @@ class EcobeeData: }, ) return True - _LOGGER.error("Error updating ecobee tokens") + _LOGGER.error("Error refreshing ecobee tokens") return False diff --git a/homeassistant/components/ecobee/manifest.json b/homeassistant/components/ecobee/manifest.json index 5df89c3d90d..8e21b9931cd 100644 --- a/homeassistant/components/ecobee/manifest.json +++ b/homeassistant/components/ecobee/manifest.json @@ -4,6 +4,6 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/ecobee", "dependencies": [], - "requirements": ["python-ecobee-api==0.1.4"], + "requirements": ["python-ecobee-api==0.2.1"], "codeowners": ["@marthoc"] } diff --git a/requirements_all.txt b/requirements_all.txt index 9bde09768bb..3094bec74ec 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1559,7 +1559,7 @@ python-clementine-remote==1.0.1 python-digitalocean==1.13.2 # homeassistant.components.ecobee -python-ecobee-api==0.1.4 +python-ecobee-api==0.2.1 # homeassistant.components.eq3btsmart # python-eq3bt==0.1.11 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 86f8e9f12cc..893c50917d4 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -560,7 +560,7 @@ pysonos==0.0.24 pyspcwebgw==0.4.0 # homeassistant.components.ecobee -python-ecobee-api==0.1.4 +python-ecobee-api==0.2.1 # homeassistant.components.darksky python-forecastio==1.4.0