Browse Source

change nanoleaf default names to start at 1 instead of 0.

feature-colorvalue2
Gisle Aune 3 years ago
parent
commit
b83673b2cc
  1. 2
      internal/drivers/nanoleaf/bridge.go

2
internal/drivers/nanoleaf/bridge.go

@ -52,7 +52,7 @@ func (b *bridge) Devices() []models.Device {
BridgeID: b.externalID,
InternalID: strconv.Itoa(int(panel.ID)),
Icon: shapeIcon,
Name: fmt.Sprintf("%s %d", shapeType, i),
Name: fmt.Sprintf("%s %d", shapeType, i+1),
Capabilities: []models.DeviceCapability{
models.DCPower,
models.DCColorHS,

Loading…
Cancel
Save