Add alarmdotcom sensor status (#14254)

* bump to match Xorso/pyalarmdotcom#9

* Load additional status attributes

* missed a spot
This commit is contained in:
Jesse Newland 2018-05-05 09:21:58 -05:00 committed by Paulus Schoutsen
parent 8410b63d9c
commit 1a936220e9
2 changed files with 9 additions and 2 deletions

View file

@ -17,7 +17,7 @@ from homeassistant.const import (
from homeassistant.helpers.aiohttp_client import async_get_clientsession
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pyalarmdotcom==0.3.1']
REQUIREMENTS = ['pyalarmdotcom==0.3.2']
_LOGGER = logging.getLogger(__name__)
@ -93,6 +93,13 @@ class AlarmDotCom(alarm.AlarmControlPanel):
return STATE_ALARM_ARMED_AWAY
return STATE_UNKNOWN
@property
def device_state_attributes(self):
"""Return the state attributes."""
return {
'sensor_status': self._alarm.sensor_status
}
@asyncio.coroutine
def async_alarm_disarm(self, code=None):
"""Send disarm command."""

View file

@ -698,7 +698,7 @@ pyads==2.2.6
pyairvisual==1.0.0
# homeassistant.components.alarm_control_panel.alarmdotcom
pyalarmdotcom==0.3.1
pyalarmdotcom==0.3.2
# homeassistant.components.arlo
pyarlo==0.1.2