Bump simplisafe-python to 9.2.0 (#34750)
This commit is contained in:
parent
96ef92659f
commit
b876f7f11a
7 changed files with 18 additions and 9 deletions
|
@ -223,7 +223,9 @@ async def async_setup_entry(hass, config_entry):
|
|||
websession = aiohttp_client.async_get_clientsession(hass)
|
||||
|
||||
try:
|
||||
api = await API.login_via_token(config_entry.data[CONF_TOKEN], websession)
|
||||
api = await API.login_via_token(
|
||||
config_entry.data[CONF_TOKEN], session=websession
|
||||
)
|
||||
except InvalidCredentialsError:
|
||||
_LOGGER.error("Invalid credentials provided")
|
||||
return False
|
||||
|
|
|
@ -57,7 +57,7 @@ class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
|
||||
try:
|
||||
simplisafe = await API.login_via_credentials(
|
||||
user_input[CONF_USERNAME], user_input[CONF_PASSWORD], websession
|
||||
user_input[CONF_USERNAME], user_input[CONF_PASSWORD], session=websession
|
||||
)
|
||||
except SimplipyError:
|
||||
return await self._show_form(errors={"base": "invalid_credentials"})
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
"name": "SimpliSafe",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
||||
"requirements": ["simplisafe-python==9.1.0"],
|
||||
"requirements": ["simplisafe-python==9.2.0"],
|
||||
"codeowners": ["@bachya"]
|
||||
}
|
||||
|
|
|
@ -2,8 +2,12 @@
|
|||
"config": {
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Fill in your information",
|
||||
"data": { "username": "Email Address", "password": "Password" }
|
||||
"title": "Fill in your information.",
|
||||
"data": {
|
||||
"username": "Email Address",
|
||||
"password": "Password",
|
||||
"code": "Code (used in Home Assistant UI)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
|
@ -18,7 +22,9 @@
|
|||
"step": {
|
||||
"init": {
|
||||
"title": "Configure SimpliSafe",
|
||||
"data": { "code": "Code (used in Home Assistant UI)" }
|
||||
"data": {
|
||||
"code": "Code (used in Home Assistant UI)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,10 +10,11 @@
|
|||
"step": {
|
||||
"user": {
|
||||
"data": {
|
||||
"code": "Code (used in Home Assistant UI)",
|
||||
"password": "Password",
|
||||
"username": "Email Address"
|
||||
},
|
||||
"title": "Fill in your information"
|
||||
"title": "Fill in your information."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1888,7 +1888,7 @@ simplehound==0.3
|
|||
simplepush==1.1.4
|
||||
|
||||
# homeassistant.components.simplisafe
|
||||
simplisafe-python==9.1.0
|
||||
simplisafe-python==9.2.0
|
||||
|
||||
# homeassistant.components.sisyphus
|
||||
sisyphus-control==2.2.1
|
||||
|
|
|
@ -722,7 +722,7 @@ sentry-sdk==0.13.5
|
|||
simplehound==0.3
|
||||
|
||||
# homeassistant.components.simplisafe
|
||||
simplisafe-python==9.1.0
|
||||
simplisafe-python==9.2.0
|
||||
|
||||
# homeassistant.components.sleepiq
|
||||
sleepyq==0.7
|
||||
|
|
Loading…
Add table
Reference in a new issue