Skip to content
Snippets Groups Projects
Commit 68bd7fd5 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Cleanup

parent de8f8178
Branches
No related tags found
No related merge requests found
......@@ -39,8 +39,8 @@ func newDevices(gw *gateway, bDevice *BridgeDevice) {
"linkquality": schemas.NewLinkquality,
}
if createDevice, ok := deviceMap[expose.Name]; ok {
dev = createDevice(addr)
if createFunc, ok := deviceMap[expose.Name]; ok {
dev = createFunc(addr)
} else if expose.Type == "switch" {
// I don't know why but some devices have a switch type
// but name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment