2015-11-26 18:09:32 +00:00
|
|
|
"""
|
|
|
|
homeassistant.components.alarm_control_panel.demo
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Demo platform that has two fake alarm control panels.
|
|
|
|
"""
|
2015-11-30 01:59:59 +00:00
|
|
|
import homeassistant.components.alarm_control_panel.manual as manual
|
2015-11-26 18:09:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
|
|
|
""" Sets up the Demo alarm control panels. """
|
|
|
|
add_devices([
|
2015-11-30 01:59:59 +00:00
|
|
|
manual.ManualAlarm(hass, 'Alarm', '1234', 5, 10),
|
|
|
|
])
|