Added option to activate computer through mqtt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-03 02:15:06 +01:00
parent 51958a0542
commit d42afecd67
4 changed files with 37 additions and 6 deletions

View File

@@ -13,6 +13,10 @@ type OnOff interface {
GetOnOff() bool
}
type Activate interface {
Activate(state bool)
}
func GetDevices[K any](devices *map[InternalName]Basic) map[InternalName]K {
devs := make(map[InternalName]K)