mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Added actor to open url in default browser
This commit is contained in:
7
start.py
7
start.py
@@ -18,7 +18,7 @@ statemachine = StateMachine(eventbus)
|
||||
|
||||
# Init observers
|
||||
tomato = observers.TomatoDeviceScanner(config.get('tomato','host'), config.get('tomato','username'),
|
||||
config.get('tomato','password'), config.get('tomato','http_id'))
|
||||
config.get('tomato','password'), config.get('tomato','http_id'))
|
||||
|
||||
devicetracker = observers.DeviceTracker(eventbus, statemachine, tomato)
|
||||
|
||||
@@ -29,10 +29,11 @@ actors.LightTrigger(eventbus, statemachine, devicetracker, actors.HueLightContro
|
||||
|
||||
# If a chromecast is specified, add some chromecast specific event triggers
|
||||
if config.has_option("chromecast", "host"):
|
||||
eventbus.listen("start_fireplace", lambda event: play_youtube_video(config.get("chromecast","host"), "eyU3bRy2x44"))
|
||||
eventbus.listen("start_epic_sax", lambda event: play_youtube_video(config.get("chromecast","host"), "kxopViU98Xo"))
|
||||
eventbus.listen("start_fireplace", lambda event: play_youtube_video(config.get("chromecast","host"), "eyU3bRy2x44"))
|
||||
eventbus.listen("start_epic_sax", lambda event: play_youtube_video(config.get("chromecast","host"), "kxopViU98Xo"))
|
||||
|
||||
actors.setup_file_downloader(eventbus, "downloads")
|
||||
actors.setup_webbrowser(eventbus)
|
||||
|
||||
# Init HTTP interface
|
||||
HTTPInterface(eventbus, statemachine, config.get("common","api_password"))
|
||||
|
||||
Reference in New Issue
Block a user