Update ambiclimate library (#24562)
parent
a0b1b2e254
commit
b782ed6bbb
|
@ -56,14 +56,15 @@ async def async_setup_entry(hass, entry, async_add_entities):
|
||||||
websession)
|
websession)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
_token_info = await oauth.refresh_access_token(token_info)
|
token_info = await oauth.refresh_access_token(token_info)
|
||||||
except ambiclimate.AmbiclimateOauthError:
|
except ambiclimate.AmbiclimateOauthError:
|
||||||
|
token_info = None
|
||||||
|
|
||||||
|
if not token_info:
|
||||||
_LOGGER.error("Failed to refresh access token")
|
_LOGGER.error("Failed to refresh access token")
|
||||||
return
|
return
|
||||||
|
|
||||||
if _token_info:
|
await store.async_save(token_info)
|
||||||
await store.async_save(_token_info)
|
|
||||||
token_info = _token_info
|
|
||||||
|
|
||||||
data_connection = ambiclimate.AmbiclimateConnection(oauth,
|
data_connection = ambiclimate.AmbiclimateConnection(oauth,
|
||||||
token_info=token_info,
|
token_info=token_info,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/components/ambiclimate",
|
"documentation": "https://www.home-assistant.io/components/ambiclimate",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"ambiclimate==0.1.3"
|
"ambiclimate==0.2.0"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
|
|
@ -175,7 +175,7 @@ alarmdecoder==1.13.2
|
||||||
alpha_vantage==2.1.0
|
alpha_vantage==2.1.0
|
||||||
|
|
||||||
# homeassistant.components.ambiclimate
|
# homeassistant.components.ambiclimate
|
||||||
ambiclimate==0.1.3
|
ambiclimate==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.amcrest
|
# homeassistant.components.amcrest
|
||||||
amcrest==1.5.3
|
amcrest==1.5.3
|
||||||
|
|
|
@ -64,7 +64,7 @@ aioswitcher==2019.4.26
|
||||||
aiounifi==6
|
aiounifi==6
|
||||||
|
|
||||||
# homeassistant.components.ambiclimate
|
# homeassistant.components.ambiclimate
|
||||||
ambiclimate==0.1.3
|
ambiclimate==0.2.0
|
||||||
|
|
||||||
# homeassistant.components.apns
|
# homeassistant.components.apns
|
||||||
apns2==0.3.0
|
apns2==0.3.0
|
||||||
|
|
Loading…
Reference in New Issue