From 224d52d1033d8ccce5087c9bee5a63457830a13a Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:11:13 +0100 Subject: Use default config The default config JSON is embedded as bytes into the executable. Instead of constants the default values are now parsed from these embedded bytes. --- cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cache.go') diff --git a/cache.go b/cache.go index e5a4e4f..4e0eddc 100644 --- a/cache.go +++ b/cache.go @@ -33,7 +33,7 @@ func (c *Cache) Update(states States) { for id, state := range states { cached, known := c.States[id] if !known || cached != state { - topic := fmt.Sprintf("%s/contact/%s/state", TOPIC_PREFIX, id) + topic := fmt.Sprintf("contact/%s/state", id) var payload []byte if state == true { payload = []byte("open") -- cgit v1.2.3-70-g09d2