I’m trying to add dependencies in app.yaml and when I do scripts don’t run.
Global:
module: global
class: Global
hello_world:
module: hello
class: HelloWorld
TimedLights:
module: timed_lights
class: TimedLights
dependencies:
- Global
TimedLights works fine when no dependencies are listed, and Global at this point only has a send.log in initialize.
Error log shows this:
2018-02-22 10:34:54.046936 WARNING AppDaemon: ------------------------------------------------------------
2018-02-22 10:34:55.055253 WARNING AppDaemon: ------------------------------------------------------------
2018-02-22 10:34:55.056894 WARNING AppDaemon: Unexpected error during utility()
2018-02-22 10:34:55.058575 WARNING AppDaemon: ------------------------------------------------------------
2018-02-22 10:34:55.064748 WARNING AppDaemon: Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1305, in utility
await utils.run_in_executor(self.loop, self.executor, self.read_apps)
File “/usr/lib/python3.6/site-packages/appdaemon/utils.py”, line 121, in run_in_executor
response = list(completed)[0].result()
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1837, in read_apps
if self.dependencies_are_satisfied(mod[“name”], depends_load_order) is True:
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1689, in dependencies_are_satisfied
dependencies = self.get_module_dependencies(_module)
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 1667, in get_module_dependencies
return self.app_config[key][“dependencies”].split(",")
AttributeError: ‘list’ object has no attribute ‘split’
2018-02-22 10:34:55.066652 WARNING AppDaemon: ------------------------------------------------------------