Bump simplisafe-python to 9.2.0 (#34750)

This commit is contained in:
Aaron Bach 2020-04-27 10:41:33 -06:00 committed by GitHub
parent 96ef92659f
commit b876f7f11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 18 additions and 9 deletions

View File

@ -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

View File

@ -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"})

View File

@ -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"]
} }

View File

@ -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)"
}
} }
} }
} }

View File

@ -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."
} }
} }
}, },

View File

@ -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

View File

@ -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