Skip to content

Commit

Permalink
Fix addon in wrong state after restore
Browse files Browse the repository at this point in the history
  • Loading branch information
mdegat01 committed May 28, 2024
1 parent 4e5b75f commit b5a399a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor/addons/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1343,11 +1343,11 @@ def _restore_data():
)
raise AddonsError() from err

finally:
# Is add-on loaded
if not self.loaded:
await self.load()

finally:
# Run add-on
if data[ATTR_STATE] == AddonState.STARTED:
wait_for_start = await self.start()
Expand Down

0 comments on commit b5a399a

Please sign in to comment.