mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add alarm control panel as platform and remove camera/acp entries
This commit is contained in:
parent
67bcb00c9e
commit
60460e8217
@ -18,7 +18,7 @@ DEPENDENCIES = ['conversation', 'introduction', 'zone']
|
|||||||
|
|
||||||
COMPONENTS_WITH_DEMO_PLATFORM = [
|
COMPONENTS_WITH_DEMO_PLATFORM = [
|
||||||
'device_tracker', 'light', 'media_player', 'notify', 'switch', 'sensor',
|
'device_tracker', 'light', 'media_player', 'notify', 'switch', 'sensor',
|
||||||
'thermostat', 'camera', 'binary_sensor']
|
'thermostat', 'camera', 'binary_sensor', 'alarm_control_panel']
|
||||||
|
|
||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
@ -55,23 +55,6 @@ def setup(hass, config):
|
|||||||
group.setup_group(hass, 'bedroom', [lights[0], switches[1],
|
group.setup_group(hass, 'bedroom', [lights[0], switches[1],
|
||||||
media_players[0]])
|
media_players[0]])
|
||||||
|
|
||||||
# Setup IP Camera
|
|
||||||
bootstrap.setup_component(
|
|
||||||
hass, 'camera',
|
|
||||||
{'camera': {
|
|
||||||
'platform': 'generic',
|
|
||||||
'name': 'IP Camera',
|
|
||||||
'still_image_url': 'http://home-assistant.io/demo/webcam.jpg',
|
|
||||||
}})
|
|
||||||
|
|
||||||
# Setup alarm_control_panel
|
|
||||||
bootstrap.setup_component(
|
|
||||||
hass, 'alarm_control_panel',
|
|
||||||
{'alarm_control_panel': {
|
|
||||||
'platform': 'manual',
|
|
||||||
'name': 'Test Alarm',
|
|
||||||
}})
|
|
||||||
|
|
||||||
# Setup scripts
|
# Setup scripts
|
||||||
bootstrap.setup_component(
|
bootstrap.setup_component(
|
||||||
hass, 'script',
|
hass, 'script',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user