Skip to content

Commit

Permalink
fixed global modules being used as dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jsl12 committed Jan 29, 2025
1 parent 987d20b commit 3c20e7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions appdaemon/app_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,11 @@ async def start_app(self, app_name: str):
return

# assert dependencies
valid_apps = self.valid_apps
dependencies = self.app_config.root[app_name].dependencies
for dep in dependencies:
assert dep in valid_apps, f"'{app_name}' depends on '{dep}', but it's not running or loaded"
if isinstance(self.app_config[dep], AppConfig):
dependency_state = await self.get_state(dep)
assert dependency_state == "idle", f"'{app_name}' depends on '{dep}', but it's state is {dependency_state}"

if self.app_config[app_name].disable:
pass
Expand Down

0 comments on commit 3c20e7c

Please sign in to comment.