Added tracking state of ChromeCast
This commit is contained in:
1 parent
87a66941d8
commit
08f4c70b4e
3 files changed
+42
-27
No files matched your search
@@ -70,6 +70,12 @@ def from_config_file(config_path):
|
||||
config.get("common", "latitude"),
|
||||
config.get("common", "longitude"))))
|
||||
|
||||
if config.has_option("chromecast", "host"):
|
||||
statusses.append(("Chromecast",
|
||||
observers.setup_chromecast(
|
||||
bus, statemachine,
|
||||
config.get("chromecast", "host"))))
|
||||
|
||||
# --------------------------
|
||||
# Init actors
|
||||
# Light control
|
||||
@@ -93,11 +99,6 @@ def from_config_file(config_path):
|
||||
|
||||
statusses.append(("Light Trigger", True))
|
||||
|
||||
if config.has_option("chromecast", "host"):
|
||||
statusses.append(("Chromecast",
|
||||
actors.setup_chromecast(
|
||||
bus, config.get("chromecast", "host"))))
|
||||
|
||||
if config.has_option("downloader", "download_dir"):
|
||||
result = actors.setup_file_downloader(
|
||||
bus, config.get("downloader", "download_dir"))
|
||||
|
||||
Reference in new issue
Block a user