add safe home assistant error handling

This commit is contained in:
2026-06-10 21:24:34 +02:00
parent 8841a68c8d
commit 29ec53cc5e
7 changed files with 186 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ from fastapi import FastAPI
from app.api.v1.entities import router as entities_router
from app.config import load_settings
from app.core.exception_handlers import register_exception_handlers
from app.ha.client import HaClient, HaClientSettings
from app.ha.reader import HaReader
@@ -31,6 +32,7 @@ app = FastAPI(
lifespan=lifespan,
)
register_exception_handlers(app)
app.include_router(entities_router)