chore: remove empty device type from devices api (#15228)
This commit is contained in:
parent
a926456315
commit
d0b58ba883
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ func deviceConfigMap[T any](class templates.Class, dev config.Device[T]) (map[st
|
|||
|
||||
dc := map[string]any{
|
||||
"name": conf.Name,
|
||||
"type": conf.Type,
|
||||
}
|
||||
if conf.Type != "" {
|
||||
dc["type"] = conf.Type
|
||||
}
|
||||
|
||||
if configurable, ok := dev.(config.ConfigurableDevice[T]); ok {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue