1
0
Fork 0

Fix double period

main v0.13.1
Jordan Hotmann 2023-11-27 21:46:06 -07:00
parent 37d4042801
commit 9de52311fc
No known key found for this signature in database
GPG Key ID: 01B504170C2A2EA3
1 changed files with 1 additions and 1 deletions

View File

@ -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)