From b5758f6a0f82180d8cc32ffcc1982bf4546c716b Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sat, 9 Mar 2024 09:16:31 +0100 Subject: [PATCH] MQTT: missing data (#12801) --- provider/mqtt/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/mqtt/client.go b/provider/mqtt/client.go index 42c3abb7f..ca7f02c50 100644 --- a/provider/mqtt/client.go +++ b/provider/mqtt/client.go @@ -137,7 +137,7 @@ func (m *Client) Cleanup(topic string, retained bool) error { time.Sleep(time.Second) - if !m.Client.Unsubscribe(topic).WaitTimeout(request.Timeout) { + if !m.Client.Unsubscribe(topic + "/#").WaitTimeout(request.Timeout) { return api.ErrTimeout }