mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Added a file downloader
This commit is contained in:
4
start.py
4
start.py
@@ -3,7 +3,7 @@ from ConfigParser import SafeConfigParser
|
||||
from homeassistant import StateMachine, EventBus, start_home_assistant
|
||||
|
||||
from homeassistant.observers import TomatoDeviceScanner, DeviceTracker, track_sun
|
||||
from homeassistant.actors import HueLightControl, LightTrigger
|
||||
from homeassistant.actors import HueLightControl, LightTrigger, setup_file_downloader
|
||||
from homeassistant.httpinterface import HTTPInterface
|
||||
|
||||
from lib.pychromecast import play_youtube_video
|
||||
@@ -32,6 +32,8 @@ 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"))
|
||||
|
||||
setup_file_downloader(eventbus, "downloads")
|
||||
|
||||
# Init HTTP interface
|
||||
HTTPInterface(eventbus, statemachine, config.get("common","api_password"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user