from core.module import Module, SettingsTab def _bt_tab(): from modules.settings.tabs.bluetooth import BluetoothTab return BluetoothTab() def setup(ctx): from modules.bluetooth import get_bluetooth_controller ctx.provide("bluetooth", get_bluetooth_controller()) MODULE = Module( id="bluetooth", provides=["bluetooth"], settings_tabs=[ SettingsTab( id="bluetooth", title="Bluetooth", icon="bluetooth", order=20, group="Connections", factory=_bt_tab, ), ], setup=setup, )