api: let Identify return multiple identities (#32949)

This commit is contained in:
andig 2026-08-18 17:21:32 +02:00 • committed by GitHub
parent 0ae85295dc
commit 0be2e0d803
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
51 changed files with 318 additions and 200 deletions

View file

@ -228,7 +228,7 @@ func (i *iDimmer) Dimmed() (bool, error) {
return i.dimmer1()
}
func Identifier(identifier0 func() (string, error)) api.Identifier {
func Identifier(identifier0 func() ([]string, error)) api.Identifier {
if identifier0 == nil {
return nil
}
@ -236,10 +236,10 @@ func Identifier(identifier0 func() (string, error)) api.Identifier {
}
type iIdentifier struct {
identifier0 func() (string, error)
identifier0 func() ([]string, error)
}
func (i *iIdentifier) Identify() (string, error) {
func (i *iIdentifier) Identify() ([]string, error) {
return i.identifier0()
}