Update docstrings

This commit is contained in:
Fabian Affolter 2015-10-02 13:42:06 +02:00
parent c7d2a09097
commit 707ca4b752

View File

@ -1,6 +1,6 @@
""" """
homeassistant.components.alarm_control_panel.verisure homeassistant.components.alarm_control_panel.verisure
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Interfaces with Verisure alarm control panel. Interfaces with Verisure alarm control panel.
""" """
import logging import logging
@ -34,7 +34,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
class VerisureAlarm(alarm.AlarmControlPanel): class VerisureAlarm(alarm.AlarmControlPanel):
""" represents a Verisure alarm status within home assistant. """ """ Represents a Verisure alarm status. """
def __init__(self, alarm_status): def __init__(self, alarm_status):
self._id = alarm_status.id self._id = alarm_status.id
@ -53,11 +53,11 @@ class VerisureAlarm(alarm.AlarmControlPanel):
@property @property
def code_format(self): def code_format(self):
""" Four digit code required""" """ Four digit code required. """
return '^\\d{4}$' return '^\\d{4}$'
def update(self): def update(self):
''' update alarm status ''' """ Update alarm status """
verisure.update() verisure.update()
if verisure.STATUS[self._device][self._id].status == 'unarmed': if verisure.STATUS[self._device][self._id].status == 'unarmed':