change scenes to use name as primary identifier.

This commit is contained in:
2022-08-19 23:17:39 +02:00
parent 382111583d
commit ca5dc75a1c
4 changed files with 10 additions and 10 deletions
+3 -3
View File
@@ -5,12 +5,12 @@ import (
)
type ReplaceScene struct {
Match string `json:"match"`
SceneID int64 `json:"sceneId"`
Match string `json:"match"`
SceneName string `json:"sceneName"`
}
func (c ReplaceScene) CommandDescription() string {
return fmt.Sprintf("ReplaceScene(%v, %d)", c.Match, c.SceneID)
return fmt.Sprintf("ReplaceScene(%v, %s)", c.Match, c.SceneName)
}
type ClearScene struct {