fix error for sqlite

This commit is contained in:
pablorevilla-meshtastic
2026-02-13 14:20:12 -08:00
parent 685dbc9505
commit 4a7fa1df08

View File

@@ -239,7 +239,6 @@ async def load_database_from_mqtt(
# ------------------------- # -------------------------
async def main(): async def main():
check_optional_deps() check_optional_deps()
await mqtt_store.load_gateway_cache()
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
# Initialize database # Initialize database
@@ -268,6 +267,9 @@ async def main():
await mqtt_database.create_tables() await mqtt_database.create_tables()
logger.info("Database tables created") logger.info("Database tables created")
# Load MQTT gateway cache after DB init/migrations
await mqtt_store.load_gateway_cache()
finally: finally:
# Clear migration in progress flag # Clear migration in progress flag
logger.info("Clearing migration status...") logger.info("Clearing migration status...")