summaryrefslogtreecommitdiff
path: root/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.go b/cache.go
index 4e0eddc..18ce0c9 100644
--- a/cache.go
+++ b/cache.go
@@ -43,6 +43,7 @@ func (c *Cache) Update(states States) {
c.Tx <- MQTTMessage{
Topic: topic,
Payload: payload,
+ Retain: true,
}
}
c.States[id] = state