Skip to content

Commit

Permalink
fix/abstractapp_init
Browse files Browse the repository at this point in the history
skill_id and bus are now handled in super() , the call to self._startup should not be done anymore
  • Loading branch information
JarbasAl committed Sep 12, 2023
1 parent 83e14c5 commit 7974cff
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ovos_workshop/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ def __init__(self, skill_id: str, bus: Optional[MessageBusClient] = None,
@param enable_settings_manager: if True, enables a SettingsManager for
this application to manage default settings and backend sync
"""
super().__init__(skill_id=skill_id, bus=bus, gui=gui,
resources_dir=resources_dir,
enable_settings_manager=enable_settings_manager,
**kwargs)
self.skill_id = skill_id
self._dedicated_bus = False
if bus:
self._dedicated_bus = False
else:
self._dedicated_bus = True
bus = get_mycroft_bus()
self._startup(bus, skill_id)

super().__init__(skill_id=skill_id, bus=bus, gui=gui,
resources_dir=resources_dir,
enable_settings_manager=enable_settings_manager,
**kwargs)

if settings:
log_deprecation(f"Settings should be set in {self._settings_path}. "
f"Passing `settings` to __init__ is not supported.",
Expand Down

0 comments on commit 7974cff

Please sign in to comment.