Skip to content

Commit

Permalink
Bump simplisafe-python to 9.0.0 (#32215)
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and balloob committed Feb 27, 2020
1 parent 6d0a465 commit 58b32bb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions homeassistant/components/simplisafe/__init__.py
Expand Up @@ -154,6 +154,7 @@

@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}
)
Expand Down Expand Up @@ -547,12 +548,7 @@ async def update_system(system):
_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
)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/simplisafe/manifest.json
Expand Up @@ -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"]
}
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -1827,7 +1827,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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -626,7 +626,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
Expand Down

0 comments on commit 58b32bb

Please sign in to comment.