Add GPIO plugin (#25806)

This commit is contained in:
andig 2025-12-05 11:39:39 +01:00 • committed by GitHub
parent 60c8993c0c
commit 1c11cc46a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 92 additions and 12 deletions

18
plugin/gpio.go Normal file
View file

@ -0,0 +1,18 @@
//go:build !linux
package plugin
import (
"context"
"github.com/evcc-io/evcc/api"
)
func init() {
registry.AddCtx("gpio", NewGpioPluginFromConfig)
}
// NewGpioPluginFromConfig creates a GPIO provider
func NewGpioPluginFromConfig(ctx context.Context, other map[string]any) (Plugin, error) {
return nil, api.ErrUnsupportedPlatform
}