Skip to content

Commit

Permalink
Fix for app initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Jan 26, 2025
1 parent 8b28c98 commit 8da7b68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions appdaemon/app_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ async def initialize_app(self, app_name: str):
raise ade.BadInitializeMethod(f"Wrong number of arguments for initialize method of {class_name}")

# Call its initialize function
await self.set_state(app_name, state="initializing")
self.logger.info(f"Calling initialize() for {app_name}")
if asyncio.iscoroutinefunction(init_func):
await init_func()
Expand Down

0 comments on commit 8da7b68

Please sign in to comment.