Skip to content

Commit

Permalink
add basic auth for version 1 devices
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Sep 14, 2024
1 parent 9b1e5ca commit 5a27db0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shellyplug/prober.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 5a27db0

Please sign in to comment.