mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Add alarmdotcom sensor status (#14254)
* bump to match Xorso/pyalarmdotcom#9 * Load additional status attributes * missed a spot
This commit is contained in:
parent
8410b63d9c
commit
1a936220e9
@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
REQUIREMENTS = ['pyalarmdotcom==0.3.1']
|
REQUIREMENTS = ['pyalarmdotcom==0.3.2']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -93,6 +93,13 @@ class AlarmDotCom(alarm.AlarmControlPanel):
|
|||||||
return STATE_ALARM_ARMED_AWAY
|
return STATE_ALARM_ARMED_AWAY
|
||||||
return STATE_UNKNOWN
|
return STATE_UNKNOWN
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_state_attributes(self):
|
||||||
|
"""Return the state attributes."""
|
||||||
|
return {
|
||||||
|
'sensor_status': self._alarm.sensor_status
|
||||||
|
}
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_alarm_disarm(self, code=None):
|
def async_alarm_disarm(self, code=None):
|
||||||
"""Send disarm command."""
|
"""Send disarm command."""
|
||||||
|
@ -698,7 +698,7 @@ pyads==2.2.6
|
|||||||
pyairvisual==1.0.0
|
pyairvisual==1.0.0
|
||||||
|
|
||||||
# homeassistant.components.alarm_control_panel.alarmdotcom
|
# homeassistant.components.alarm_control_panel.alarmdotcom
|
||||||
pyalarmdotcom==0.3.1
|
pyalarmdotcom==0.3.2
|
||||||
|
|
||||||
# homeassistant.components.arlo
|
# homeassistant.components.arlo
|
||||||
pyarlo==0.1.2
|
pyarlo==0.1.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user