From 9de52311fc1695e7a74e9dac145224fe5a06b7b5 Mon Sep 17 00:00:00 2001 From: Jordan Hotmann Date: Mon, 27 Nov 2023 21:46:06 -0700 Subject: [PATCH] Fix double period --- pkg/nats/subscribers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nats/subscribers.go b/pkg/nats/subscribers.go index 6f2511c..52ea999 100644 --- a/pkg/nats/subscribers.go +++ b/pkg/nats/subscribers.go @@ -13,7 +13,7 @@ func GenericStateSubscriber(logger *slog.Logger, natsClient *NatsConnection, ent if entityId == "" { panic(errors.New("entity ID cannot be empty")) } - topic := fmt.Sprintf("homeassistant.states..%s.>", entityId) + topic := fmt.Sprintf("homeassistant.states.%s.>", entityId) l := logger.With("topic", topic, "entity_id", entityId) l.Debug("Subscribing to topic") sub, ch, err := natsClient.Subscribe(topic)