diagnostic tool fixes

This commit is contained in:
2024-04-22 13:52:17 +03:00
parent 4f18b6db18
commit dc2e6ea2b5
20 changed files with 178 additions and 160 deletions

View File

@ -50,7 +50,7 @@ func (ms MatterState) Change(from MatterState, to MatterState) bool {
return false
}(transitions[from], to)
if !newStateFound {
log.Warn().Msgf("Transition %s -> %s is impossible", from, to)
log.Warn().Msgf(`Transition %d -> %d is impossible`, from, to)
return false
}
// check temperatures/conditions, see template
@ -79,4 +79,4 @@ func (ms MatterState) Change(from MatterState, to MatterState) bool {
return true
}
}