Skip to content

Commit a915e9d

Browse files
authored
credentials fix
1 parent cf284fa commit a915e9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Drivers/sonoff-bridge-tasmota.src/sonoff-bridge-tasmota.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ private String convertPortToHex(port) {
456456

457457
private encodeCredentials(username, password){
458458
def userpassascii = "${username}:${password}"
459-
def userpass = "Basic " + userpassascii.encodeAsBase64().toString()
459+
def userpass = "Basic " + userpassascii.bytes.encodeBase64().toString()
460460
return userpass
461461
}
462462

0 commit comments

Comments
 (0)