Bump simplisafe-python to 9.0.0 (#32215)
parent
4c5e364d90
commit
df04fe3258
|
@ -154,6 +154,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
@callback
|
||||
def _async_save_refresh_token(hass, config_entry, token):
|
||||
"""Save a refresh token to the config entry."""
|
||||
hass.config_entries.async_update_entry(
|
||||
config_entry, data={**config_entry.data, CONF_TOKEN: token}
|
||||
)
|
||||
|
@ -501,12 +502,7 @@ class SimpliSafe:
|
|||
_LOGGER.error("Unknown error while updating: %s", result)
|
||||
return
|
||||
|
||||
if self._api.refresh_token_dirty:
|
||||
# Reconnect the websocket:
|
||||
await self._api.websocket.async_disconnect()
|
||||
await self._api.websocket.async_connect()
|
||||
|
||||
# Save the new refresh token:
|
||||
if self._api.refresh_token != self._config_entry.data[CONF_TOKEN]:
|
||||
_async_save_refresh_token(
|
||||
self._hass, self._config_entry, self._api.refresh_token
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "SimpliSafe",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
||||
"requirements": ["simplisafe-python==8.1.1"],
|
||||
"requirements": ["simplisafe-python==9.0.0"],
|
||||
"dependencies": [],
|
||||
"codeowners": ["@bachya"]
|
||||
}
|
||||
|
|
|
@ -1831,7 +1831,7 @@ simplehound==0.3
|
|||
simplepush==1.1.4
|
||||
|
||||
# homeassistant.components.simplisafe
|
||||
simplisafe-python==8.1.1
|
||||
simplisafe-python==9.0.0
|
||||
|
||||
# homeassistant.components.sisyphus
|
||||
sisyphus-control==2.2.1
|
||||
|
|
|
@ -629,7 +629,7 @@ sentry-sdk==0.13.5
|
|||
simplehound==0.3
|
||||
|
||||
# homeassistant.components.simplisafe
|
||||
simplisafe-python==8.1.1
|
||||
simplisafe-python==9.0.0
|
||||
|
||||
# homeassistant.components.sleepiq
|
||||
sleepyq==0.7
|
||||
|
|
Loading…
Reference in New Issue