From 2289dd6ca3eac8fca2987d24e157115ced5db5f1 Mon Sep 17 00:00:00 2001 From: MartinNYHC Date: Tue, 3 Feb 2026 17:26:42 +0100 Subject: [PATCH 1/3] Add CI and Code Scanning badges to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b67fc9cce..d64b2f50c 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@

Release + + License Stars Issues From 84f1347bd0d0126bec67c08028b7361e872d00ed Mon Sep 17 00:00:00 2001 From: Dennis <1451140+karaktaka@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:36:32 +0100 Subject: [PATCH 2/3] Reorder import statement for jwt in main.py --- backend/app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 9102b774f..8cea4dece 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -2662,8 +2662,8 @@ async def auth_middleware(request, call_next): ) # Validate JWT token + import jwt try: - import jwt from backend.app.core.auth import ALGORITHM, SECRET_KEY From bf75cd2527a45f01f548ec69e026c0d38533d35d Mon Sep 17 00:00:00 2001 From: Dennis <1451140+karaktaka@users.noreply.github.com> Date: Wed, 4 Feb 2026 14:36:32 +0100 Subject: [PATCH 3/3] Remove unused import statement for sqlalchemy in main.py --- backend/app/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/app/main.py b/backend/app/main.py index 8cea4dece..cdc303b12 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -2423,8 +2423,6 @@ async def lifespan(app: FastAPI): # Restore MQTT smart plug subscriptions if mqtt_settings.get("mqtt_enabled"): - from sqlalchemy import select - from backend.app.models.smart_plug import SmartPlug result = await db.execute(select(SmartPlug).where(SmartPlug.plug_type == "mqtt"))