replace sleeps with track_point_in_time
This commit is contained in:
parent
e57b3ae847
commit
1b7ce2146c
4 changed files with 69 additions and 46 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue