From f558f4e323e3b23d8f1da4e0eba5d9e0a517d683 Mon Sep 17 00:00:00 2001 From: Jordan Hotmann Date: Wed, 10 Jan 2024 15:29:51 -0700 Subject: [PATCH] Fix topic spelling --- internal/homeassistant/subscriber.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/homeassistant/subscriber.go b/internal/homeassistant/subscriber.go index 4867fa0..4a3d4b0 100644 --- a/internal/homeassistant/subscriber.go +++ b/internal/homeassistant/subscriber.go @@ -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) }