Fix bug in ecobee integration (#32008)

* Bump python-ecobee-api to 0.2.1

* Update log messages for clarity

* Update requirements_all
This commit is contained in:
Mark Coombes authored and GitHub committed 2020-02-19 21:05:22 -08:00
1 parent 5839df39b5
commit 832337f26c
4 files changed
+5 -7

No files matched your search

+2 -4
View File
@@ -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