From 11a74b4e987dfd5bfa0c35f81aa5bff755a79f12 Mon Sep 17 00:00:00 2001 From: Edward Brown Date: Wed, 31 Dec 2025 14:48:13 +0000 Subject: [PATCH] Fix state topics not being retained by default --- haco/topics.py | 2 +- haco/version | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/haco/topics.py b/haco/topics.py index 3367062..963f2b0 100644 --- a/haco/topics.py +++ b/haco/topics.py @@ -107,7 +107,7 @@ class AnnounceTopicState(AnnounceTopic): return value_raw = self.capability.converters.state(value) - await self.capability.control.device.client.publish(self.topic, value_raw) + await self.capability.control.device.client.publish(self.topic, value_raw, retain=True) logger.info(f'{get_prefix(self.IO)}: {self.topic} {Constants.ARROW_RIGHT} {value_raw}') diff --git a/haco/version b/haco/version index a1e1395..84aa3a7 100644 --- a/haco/version +++ b/haco/version @@ -1 +1 @@ -0.1.7 \ No newline at end of file +0.1.8 \ No newline at end of file