Loadpoint: adapt UI for integrated and switch devices (#30909)

Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
andig 2026-06-19 18:25:59 +02:00 • committed by GitHub
parent 5f9047531d
commit eed0649eaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 101 additions and 12 deletions

View file

@ -349,6 +349,10 @@ func testInstance(instance any) map[string]testResult {
makeResult("integratedDevice", true, nil)
}
if hasFeature(instance, api.SwitchDevice) {
makeResult("switchDevice", true, nil)
}
if dev, ok := api.Cap[api.IconDescriber](instance); ok && dev.Icon() != "" {
makeResult("icon", dev.Icon(), nil)
}