mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fixing Egardia 'home armed' state not shown correctly. (#13335)
* Fixing Egardia 'home armed' state not shown correctly. * Updating requirements_all. * Adding DEPEDENCY list to Egardia components. * updating requirements_all
This commit is contained in:
parent
d385e9645d
commit
98620d8ce8
@ -12,13 +12,14 @@ import requests
|
|||||||
import homeassistant.components.alarm_control_panel as alarm
|
import homeassistant.components.alarm_control_panel as alarm
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
STATE_ALARM_DISARMED, STATE_ALARM_ARMED_HOME,
|
STATE_ALARM_DISARMED, STATE_ALARM_ARMED_HOME,
|
||||||
STATE_ALARM_ARMED_AWAY, STATE_ALARM_TRIGGERED)
|
STATE_ALARM_ARMED_AWAY, STATE_ALARM_TRIGGERED,
|
||||||
|
STATE_ALARM_ARMED_NIGHT)
|
||||||
from homeassistant.components.egardia import (
|
from homeassistant.components.egardia import (
|
||||||
EGARDIA_DEVICE, EGARDIA_SERVER,
|
EGARDIA_DEVICE, EGARDIA_SERVER,
|
||||||
REPORT_SERVER_CODES_IGNORE, CONF_REPORT_SERVER_CODES,
|
REPORT_SERVER_CODES_IGNORE, CONF_REPORT_SERVER_CODES,
|
||||||
CONF_REPORT_SERVER_ENABLED, CONF_REPORT_SERVER_PORT
|
CONF_REPORT_SERVER_ENABLED, CONF_REPORT_SERVER_PORT
|
||||||
)
|
)
|
||||||
REQUIREMENTS = ['pythonegardia==1.0.38']
|
DEPENDENCIES = ['egardia']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -27,6 +28,8 @@ STATES = {
|
|||||||
'DAY HOME': STATE_ALARM_ARMED_HOME,
|
'DAY HOME': STATE_ALARM_ARMED_HOME,
|
||||||
'DISARM': STATE_ALARM_DISARMED,
|
'DISARM': STATE_ALARM_DISARMED,
|
||||||
'ARMHOME': STATE_ALARM_ARMED_HOME,
|
'ARMHOME': STATE_ALARM_ARMED_HOME,
|
||||||
|
'HOME': STATE_ALARM_ARMED_HOME,
|
||||||
|
'NIGHT HOME': STATE_ALARM_ARMED_NIGHT,
|
||||||
'TRIGGERED': STATE_ALARM_TRIGGERED
|
'TRIGGERED': STATE_ALARM_TRIGGERED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ from homeassistant.const import STATE_ON, STATE_OFF
|
|||||||
from homeassistant.components.egardia import (
|
from homeassistant.components.egardia import (
|
||||||
EGARDIA_DEVICE, ATTR_DISCOVER_DEVICES)
|
EGARDIA_DEVICE, ATTR_DISCOVER_DEVICES)
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
DEPENDENCIES = ['egardia']
|
||||||
EGARDIA_TYPE_TO_DEVICE_CLASS = {'IR Sensor': 'motion',
|
EGARDIA_TYPE_TO_DEVICE_CLASS = {'IR Sensor': 'motion',
|
||||||
'Door Contact': 'opening',
|
'Door Contact': 'opening',
|
||||||
'IR': 'motion'}
|
'IR': 'motion'}
|
||||||
|
@ -15,7 +15,7 @@ from homeassistant.const import (
|
|||||||
CONF_PORT, CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_NAME,
|
CONF_PORT, CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_NAME,
|
||||||
EVENT_HOMEASSISTANT_STOP)
|
EVENT_HOMEASSISTANT_STOP)
|
||||||
|
|
||||||
REQUIREMENTS = ['pythonegardia==1.0.38']
|
REQUIREMENTS = ['pythonegardia==1.0.39']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1006,8 +1006,7 @@ python_opendata_transport==0.0.3
|
|||||||
python_openzwave==0.4.3
|
python_openzwave==0.4.3
|
||||||
|
|
||||||
# homeassistant.components.egardia
|
# homeassistant.components.egardia
|
||||||
# homeassistant.components.alarm_control_panel.egardia
|
pythonegardia==1.0.39
|
||||||
pythonegardia==1.0.38
|
|
||||||
|
|
||||||
# homeassistant.components.sensor.whois
|
# homeassistant.components.sensor.whois
|
||||||
pythonwhois==2.4.3
|
pythonwhois==2.4.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user