Fix topic spelling
parent
aebc001d56
commit
f558f4e323
|
@ -147,7 +147,7 @@ func handleMessages() {
|
|||
cleanedState := stateReplacer.Replace(message.Event.Data.NewState.State)
|
||||
if message.Event.Data.NewState.State == message.Event.Data.OldState.State {
|
||||
logger.Debug("State unchanged, publishing to attributes topic")
|
||||
nats.Publish(fmt.Sprintf("homeassistant.attributues.%s.%s", message.Event.Data.EntityId, cleanedState), data)
|
||||
nats.Publish(fmt.Sprintf("homeassistant.attributes.%s.%s", message.Event.Data.EntityId, cleanedState), data)
|
||||
} else {
|
||||
nats.PublishRequest(fmt.Sprintf("homeassistant.states.%s.%s", message.Event.Data.EntityId, cleanedState), data, defaultTimeout, 2)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue