Skip to content

Commit b43d716

Browse files
move from interface{} to any
1 parent f370885 commit b43d716

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kasa.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
// https://lib.dr.iastate.edu/cgi/viewcontent.cgi?article=1424&context=creativecomponents
1515
// https://github.com/p-doyle/Python-KasaSmartPowerStrip
1616
// https://community.hubitat.com/t/release-tp-link-kasa-plug-switch-and-bulb-integration/1675/482
17+
// https://github.com/whitslack/kasa/blob/master/API.md
1718

1819
// Device is the primary type, commands are called from the device
1920
type Device struct {
@@ -28,8 +29,8 @@ var klogger kasalogger = log.Default()
2829

2930
// Any log interface that has Println and Printf will do
3031
type kasalogger interface {
31-
Println(...interface{})
32-
Printf(string, ...interface{})
32+
Println(...any)
33+
Printf(string, ...any)
3334
}
3435

3536
// NewDevice sets up a new Kasa device for polling

0 commit comments

Comments
 (0)