core/homeassistant/components/alarm_control_panel/demo.py

15 lines
455 B
Python
Raw Normal View History

"""
Demo platform that has two fake alarm control panels.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
2015-11-30 01:59:59 +00:00
import homeassistant.components.alarm_control_panel.manual as manual
def setup_platform(hass, config, add_devices, discovery_info=None):
"""Setup the Demo alarm control panel platform."""
add_devices([
2015-11-30 01:59:59 +00:00
manual.ManualAlarm(hass, 'Alarm', '1234', 5, 10),
])