diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e45ae7..53f7988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 1.6.1 - 2026-06-18 +- Home-Assistant-WebSocket nutzt wieder keinen clientseitigen Keepalive-Ping. + Damit bleibt das Event-Verhalten aus 0.7.8 stabil und Sensorwechsel fuehren + nicht erst ueber Fallback oder manuelle Statusabfrage zu Schaltungen. + ## 1.6.0 - 2026-06-18 - `/v1/actuators/dashboard/system` und `/dashboard/start` lesen fuer Cache-Status nur noch SQLite-Metadaten statt den kompletten Entity-Cache zu diff --git a/addon/config.yaml b/addon/config.yaml index 60a748f..8046a64 100644 --- a/addon/config.yaml +++ b/addon/config.yaml @@ -1,5 +1,5 @@ name: SillyHome Next -version: "1.6.0" +version: "1.6.1" slug: sillyhome_next description: Lernt automatisch aus deinem Verhalten und steuert freigegebene Aktoren url: http://192.168.6.31:3000/pino/sillyhome-next diff --git a/app/main.py b/app/main.py index 5129f62..a57d4ec 100644 --- a/app/main.py +++ b/app/main.py @@ -117,7 +117,7 @@ async def lifespan(app: FastAPI) -> AsyncIterator[None]: app = FastAPI( title="SillyHome Next API", description="Lokales Smart-Home-Intelligenzsystem für Home Assistant.", - version="1.6.0", + version="1.6.1", lifespan=lifespan, ) app.state.settings = load_settings() @@ -259,11 +259,7 @@ async def _ha_event_listener(app: FastAPI, client: HaClient) -> None: if ws_status is not None: ws_status.status = "connecting" try: - async with websockets.connect( - ws_url, - ping_interval=30, - ping_timeout=30, - ) as websocket: + async with websockets.connect(ws_url, ping_interval=None) as websocket: auth_required_msg = await websocket.recv() auth_required_data = json.loads(auth_required_msg) if auth_required_data.get("type") != "auth_required": diff --git a/pyproject.toml b/pyproject.toml index 954e294..554ca0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "sillyhome-next" -version = "1.6.0" +version = "1.6.1" description = "Lokales Smart-Home-Intelligenzsystem für Home Assistant" requires-python = ">=3.11" dependencies = [ diff --git a/tests/test_main.py b/tests/test_main.py index 367c31f..6655a29 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -94,8 +94,7 @@ def test_ha_event_listener_processes_state_change(tmp_path: Path) -> None: connect.assert_called_once_with( "ws://homeassistant:8123/api/websocket", - ping_interval=30, - ping_timeout=30, + ping_interval=None, ) assert fake_ws.sent == [ {"type": "auth", "access_token": "test-token"},