replace sleeps with track_point_in_time

This commit is contained in:
sfam 2015-10-13 00:56:24 +00:00
parent e57b3ae847
commit 1b7ce2146c
4 changed files with 69 additions and 46 deletions

View file

@ -100,6 +100,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
# pylint: disable=too-many-arguments, too-many-instance-attributes
# pylint: disable=abstract-method
class MqttAlarm(alarm.AlarmControlPanel):
""" represents a MQTT alarm status within home assistant. """
@ -166,7 +167,3 @@ class MqttAlarm(alarm.AlarmControlPanel):
self._payload_arm_away, self._qos)
else:
_LOGGER.warning("Wrong code entered while arming away!")
def alarm_trigger(self, code=None):
""" Send alarm trigger command. No code needed. """
return