Loadpoint: adapt UI for integrated and switch devices (#30909)
Co-authored-by: Michael Geers <michael@geers.tv>
This commit is contained in:
parent
5f9047531d
commit
eed0649eaa
13 changed files with 101 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue