From 8e4088e08f18edf2d375d339032ea2a3ba69f93f Mon Sep 17 00:00:00 2001 From: Timo Christeleit Date: Wed, 8 Jan 2025 11:03:17 +0100 Subject: [PATCH] fix tapo h200 + d230 doorbell stream --- pkg/tapo/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tapo/client.go b/pkg/tapo/client.go index 6ccafe4e..78bf5fce 100644 --- a/pkg/tapo/client.go +++ b/pkg/tapo/client.go @@ -291,7 +291,7 @@ func dial(req *http.Request, brand, username, password string) (net.Conn, *http. if err != nil { return nil, nil, err } - _ = res.Body.Close() // ignore response body + _, _ = io.Copy(io.Discard, res.Body) // ignore response body auth := res.Header.Get("WWW-Authenticate")