From a8b5cc833de731a10167f1f4d97a84e593d98371 Mon Sep 17 00:00:00 2001 From: majuss Date: Tue, 4 Dec 2018 21:04:39 +0000 Subject: [PATCH] Lupupy version push to 0.0.17 - will now transmitted state_alarm_triggered (#19008) * added state_alarm_triggered transmission; pushed lupupy version * added state_alarm_triggered transmission; pushed lupupy version * added state_alarm_triggered transmission; pushed lupupy version * added state_alarm_triggered transmission; pushed lupupy version --- homeassistant/components/alarm_control_panel/lupusec.py | 5 ++++- homeassistant/components/lupusec.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/alarm_control_panel/lupusec.py b/homeassistant/components/alarm_control_panel/lupusec.py index 44d8a068ce2..21eefc238a0 100644 --- a/homeassistant/components/alarm_control_panel/lupusec.py +++ b/homeassistant/components/alarm_control_panel/lupusec.py @@ -12,7 +12,8 @@ from homeassistant.components.lupusec import DOMAIN as LUPUSEC_DOMAIN from homeassistant.components.lupusec import LupusecDevice from homeassistant.const import (STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, - STATE_ALARM_DISARMED) + STATE_ALARM_DISARMED, + STATE_ALARM_TRIGGERED) DEPENDENCIES = ['lupusec'] @@ -50,6 +51,8 @@ class LupusecAlarm(LupusecDevice, AlarmControlPanel): state = STATE_ALARM_ARMED_AWAY elif self._device.is_home: state = STATE_ALARM_ARMED_HOME + elif self._device.is_alarm_triggered: + state = STATE_ALARM_TRIGGERED else: state = None return state diff --git a/homeassistant/components/lupusec.py b/homeassistant/components/lupusec.py index 17b04fce867..94cb3abc4a2 100644 --- a/homeassistant/components/lupusec.py +++ b/homeassistant/components/lupusec.py @@ -16,7 +16,7 @@ from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) -REQUIREMENTS = ['lupupy==0.0.13'] +REQUIREMENTS = ['lupupy==0.0.17'] DOMAIN = 'lupusec' diff --git a/requirements_all.txt b/requirements_all.txt index 8b4f94481cd..99e0c2d5e39 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -612,7 +612,7 @@ logi_circle==0.1.7 luftdaten==0.3.4 # homeassistant.components.lupusec -lupupy==0.0.13 +lupupy==0.0.17 # homeassistant.components.light.lw12wifi lw12==0.9.2