Update ambiclimate library (#24562)

pull/24564/head
Daniel Høyer Iversen 2019-06-16 15:11:53 +02:00 committed by Fabian Affolter
parent a0b1b2e254
commit b782ed6bbb
4 changed files with 8 additions and 7 deletions

View File

@ -56,14 +56,15 @@ async def async_setup_entry(hass, entry, async_add_entities):
websession)
try:
_token_info = await oauth.refresh_access_token(token_info)
token_info = await oauth.refresh_access_token(token_info)
except ambiclimate.AmbiclimateOauthError:
token_info = None
if not token_info:
_LOGGER.error("Failed to refresh access token")
return
if _token_info:
await store.async_save(_token_info)
token_info = _token_info
await store.async_save(token_info)
data_connection = ambiclimate.AmbiclimateConnection(oauth,
token_info=token_info,

View File

@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/ambiclimate",
"requirements": [
"ambiclimate==0.1.3"
"ambiclimate==0.2.0"
],
"dependencies": [],
"codeowners": [

View File

@ -175,7 +175,7 @@ alarmdecoder==1.13.2
alpha_vantage==2.1.0
# homeassistant.components.ambiclimate
ambiclimate==0.1.3
ambiclimate==0.2.0
# homeassistant.components.amcrest
amcrest==1.5.3

View File

@ -64,7 +64,7 @@ aioswitcher==2019.4.26
aiounifi==6
# homeassistant.components.ambiclimate
ambiclimate==0.1.3
ambiclimate==0.2.0
# homeassistant.components.apns
apns2==0.3.0