Skip to content

Commit

Permalink
put number after unamed items
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetancollaud committed Jan 8, 2022
1 parent 6ea3188 commit 88f55f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions digitalstrom/scene.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (sm *SceneManager) getZoneName(zoneId int) (string, error) {
if utils.CheckNoErrorAndPrint(err) {
name = response.mapValue["name"].(string)
if len(name) == 0 {
name = "unnamed-zone"
name = "unnamed-zone" + strconv.Itoa(zoneId)
}
sm.zonesById[zoneId] = name
return name, nil
Expand All @@ -75,7 +75,7 @@ func (sm *SceneManager) getSceneName(zoneId int, groupId int, sceneId int) (stri
if utils.CheckNoErrorAndPrint(err) {
name = response.mapValue["name"].(string)
if len(name) == 0 {
name = "unnamed-scene"
name = "unnamed-scene-" + strconv.Itoa(sceneId)
}
sm.sceneById[id] = name
return name, nil
Expand Down

0 comments on commit 88f55f2

Please sign in to comment.