From b83673b2cc68cd0365f60f90d47ffc8d5fb95fe8 Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Thu, 30 Sep 2021 23:08:33 +0200 Subject: [PATCH] change nanoleaf default names to start at 1 instead of 0. --- internal/drivers/nanoleaf/bridge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/drivers/nanoleaf/bridge.go b/internal/drivers/nanoleaf/bridge.go index c371b59..2c91727 100644 --- a/internal/drivers/nanoleaf/bridge.go +++ b/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,