From 5a27db0a27ebc893f898a434102ff9875b598601 Mon Sep 17 00:00:00 2001 From: Markus Blaschke Date: Sat, 14 Sep 2024 23:20:13 +0200 Subject: [PATCH] add basic auth for version 1 devices Signed-off-by: Markus Blaschke --- shellyplug/prober.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shellyplug/prober.go b/shellyplug/prober.go index d9751aa..3f7a965 100644 --- a/shellyplug/prober.go +++ b/shellyplug/prober.go @@ -73,6 +73,7 @@ func (sp *ShellyPlug) SetTimeout(timeout time.Duration) { func (sp *ShellyPlug) SetHttpAuth(username, password string) { sp.client.SetDisableWarn(true) + sp.client.SetBasicAuth(username, password) sp.client.SetDigestAuth(username, password) }