From 576e1bf2300e7a324713710871d9bcd5424ff286 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 13:53:06 +0100 Subject: Implement Homematic reconnects This is as simple as do not handling errors on state polling. It ensures the server does not panic when the connection to the OpenCCU is temporarily not alive. --- homematic.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'homematic.go') diff --git a/homematic.go b/homematic.go index ae12760..7ccc1ad 100644 --- a/homematic.go +++ b/homematic.go @@ -24,10 +24,7 @@ func HomematicRun(tx chan MQTTMessage) { for { start := time.Now() - states, err := Poll(req, inventory) - if err != nil { - log.Fatalf("Failed to poll states: %v", err) - } + states, _ := Poll(req, inventory) cache.Update(states) -- cgit v1.2.3-70-g09d2