mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Bump simplisafe-python to 9.2.0 (#34750)
This commit is contained in:
parent
96ef92659f
commit
b876f7f11a
@ -223,7 +223,9 @@ async def async_setup_entry(hass, config_entry):
|
|||||||
websession = aiohttp_client.async_get_clientsession(hass)
|
websession = aiohttp_client.async_get_clientsession(hass)
|
||||||
|
|
||||||
try:
|
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:
|
except InvalidCredentialsError:
|
||||||
_LOGGER.error("Invalid credentials provided")
|
_LOGGER.error("Invalid credentials provided")
|
||||||
return False
|
return False
|
||||||
|
@ -57,7 +57,7 @@ class SimpliSafeFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
simplisafe = await API.login_via_credentials(
|
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:
|
except SimplipyError:
|
||||||
return await self._show_form(errors={"base": "invalid_credentials"})
|
return await self._show_form(errors={"base": "invalid_credentials"})
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
"name": "SimpliSafe",
|
"name": "SimpliSafe",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
"documentation": "https://www.home-assistant.io/integrations/simplisafe",
|
||||||
"requirements": ["simplisafe-python==9.1.0"],
|
"requirements": ["simplisafe-python==9.2.0"],
|
||||||
"codeowners": ["@bachya"]
|
"codeowners": ["@bachya"]
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,12 @@
|
|||||||
"config": {
|
"config": {
|
||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"title": "Fill in your information",
|
"title": "Fill in your information.",
|
||||||
"data": { "username": "Email Address", "password": "Password" }
|
"data": {
|
||||||
|
"username": "Email Address",
|
||||||
|
"password": "Password",
|
||||||
|
"code": "Code (used in Home Assistant UI)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
@ -18,7 +22,9 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"init": {
|
"init": {
|
||||||
"title": "Configure SimpliSafe",
|
"title": "Configure SimpliSafe",
|
||||||
"data": { "code": "Code (used in Home Assistant UI)" }
|
"data": {
|
||||||
|
"code": "Code (used in Home Assistant UI)"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,10 +10,11 @@
|
|||||||
"step": {
|
"step": {
|
||||||
"user": {
|
"user": {
|
||||||
"data": {
|
"data": {
|
||||||
|
"code": "Code (used in Home Assistant UI)",
|
||||||
"password": "Password",
|
"password": "Password",
|
||||||
"username": "Email Address"
|
"username": "Email Address"
|
||||||
},
|
},
|
||||||
"title": "Fill in your information"
|
"title": "Fill in your information."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1888,7 +1888,7 @@ simplehound==0.3
|
|||||||
simplepush==1.1.4
|
simplepush==1.1.4
|
||||||
|
|
||||||
# homeassistant.components.simplisafe
|
# homeassistant.components.simplisafe
|
||||||
simplisafe-python==9.1.0
|
simplisafe-python==9.2.0
|
||||||
|
|
||||||
# homeassistant.components.sisyphus
|
# homeassistant.components.sisyphus
|
||||||
sisyphus-control==2.2.1
|
sisyphus-control==2.2.1
|
||||||
|
@ -722,7 +722,7 @@ sentry-sdk==0.13.5
|
|||||||
simplehound==0.3
|
simplehound==0.3
|
||||||
|
|
||||||
# homeassistant.components.simplisafe
|
# homeassistant.components.simplisafe
|
||||||
simplisafe-python==9.1.0
|
simplisafe-python==9.2.0
|
||||||
|
|
||||||
# homeassistant.components.sleepiq
|
# homeassistant.components.sleepiq
|
||||||
sleepyq==0.7
|
sleepyq==0.7
|
||||||
|
Loading…
x
Reference in New Issue
Block a user