From 535ce8726df9164619ca07c9c4bcf543311e7964 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Tue, 14 Apr 2020 11:53:53 -0600 Subject: [PATCH] Bump simplisafe-python to 9.0.7 (#34216) --- homeassistant/components/simplisafe/alarm_control_panel.py | 4 +++- homeassistant/components/simplisafe/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/simplisafe/alarm_control_panel.py b/homeassistant/components/simplisafe/alarm_control_panel.py index a95f77ab360..867a1044856 100644 --- a/homeassistant/components/simplisafe/alarm_control_panel.py +++ b/homeassistant/components/simplisafe/alarm_control_panel.py @@ -220,7 +220,9 @@ class SimpliSafeAlarm(SimpliSafeEntity, AlarmControlPanel): # Although system state updates are designed the come via the websocket, the # SimpliSafe cloud can sporadically fail to send those updates as expected; so, # just in case, we synchronize the state via the REST API, too: - if self._system.state == SystemStates.away: + if self._system.state == SystemStates.alarm: + self._state = STATE_ALARM_TRIGGERED + elif self._system.state == SystemStates.away: self._state = STATE_ALARM_ARMED_AWAY elif self._system.state in (SystemStates.away_count, SystemStates.exit_delay): self._state = STATE_ALARM_ARMING diff --git a/homeassistant/components/simplisafe/manifest.json b/homeassistant/components/simplisafe/manifest.json index cd0cda68125..c03f05fc0c1 100644 --- a/homeassistant/components/simplisafe/manifest.json +++ b/homeassistant/components/simplisafe/manifest.json @@ -3,6 +3,6 @@ "name": "SimpliSafe", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/simplisafe", - "requirements": ["simplisafe-python==9.0.6"], + "requirements": ["simplisafe-python==9.0.7"], "codeowners": ["@bachya"] } diff --git a/requirements_all.txt b/requirements_all.txt index 8c1e230759a..4465e3b2a61 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1876,7 +1876,7 @@ simplehound==0.3 simplepush==1.1.4 # homeassistant.components.simplisafe -simplisafe-python==9.0.6 +simplisafe-python==9.0.7 # homeassistant.components.sisyphus sisyphus-control==2.2.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 109f387dc7d..a982e2b9fc5 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -710,7 +710,7 @@ sentry-sdk==0.13.5 simplehound==0.3 # homeassistant.components.simplisafe -simplisafe-python==9.0.6 +simplisafe-python==9.0.7 # homeassistant.components.sleepiq sleepyq==0.7