-
Notifications
You must be signed in to change notification settings - Fork 437
Closed
Labels
Description
What happened?
The Home Assistant addon gives an error since the upgrade:
ValueError: '/usr/lib/python3.12/site-packages/appdaemon/scheduler.py' is not in the subpath of '/config'
This only happens after the upgrade of the addon and may be related to #2298
Version
4.5.12
Installation type
Home Assistant add-on
Relevant log output
Traceback (most recent call last):
File "/usr/lib/python3.12/site-packages/appdaemon/utility_loop.py", line 246, in _loop_iteration_context
yield timing
File "/usr/lib/python3.12/site-packages/appdaemon/utility_loop.py", line 197, in loop
await self.AD.app_management.check_app_updates()
File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 930, in check_app_updates
await self._create_and_start_apps(update_actions)
File "/usr/lib/python3.12/site-packages/appdaemon/app_management.py", line 1222, in _create_and_start_apps
await safe_start(self)
File "/usr/lib/python3.12/site-packages/appdaemon/exceptions.py", line 182, in wrapper
user_exception_block(logger, e, app_dir, header)
File "/usr/lib/python3.12/site-packages/appdaemon/exceptions.py", line 116, in user_exception_block
file = Path(frame.filename).relative_to(app_dir.parent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/pathlib.py", line 682, in relative_to
raise ValueError(f"{str(self)!r} is not in the subpath of {str(other)!r}")Relevant code in the app or config file that caused the issue
def initialize(self):
self.run_every(self.callback, start='now', interval=60, pin=True)Anything else?
It seems that this function however still works:
self.run_minutely(self.callback, datetime.time(0, 0, 0), pin=True)