Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump simplisafe-python to 9.2.0 #34750

Merged
merged 1 commit into from Apr 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion homeassistant/components/simplisafe/__init__.py
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/simplisafe/config_flow.py
Expand Up @@ -57,7 +57,7 @@ async def async_step_user(self, user_input=None):

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"})
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/simplisafe/manifest.json
Expand Up @@ -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"]
}
12 changes: 9 additions & 3 deletions homeassistant/components/simplisafe/strings.json
Expand Up @@ -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": {
Expand All @@ -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)"
}
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion homeassistant/components/simplisafe/translations/en.json
Expand Up @@ -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."
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Expand Up @@ -1885,7 +1885,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
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Expand Up @@ -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
Expand Down