Skip to content

Commit 11a74b4

Browse files
committed
Fix state topics not being retained by default
1 parent 55404d4 commit 11a74b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

haco/topics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def handle(self, value=None):
107107
return
108108

109109
value_raw = self.capability.converters.state(value)
110-
await self.capability.control.device.client.publish(self.topic, value_raw)
110+
await self.capability.control.device.client.publish(self.topic, value_raw, retain=True)
111111

112112
logger.info(f'{get_prefix(self.IO)}: {self.topic} {Constants.ARROW_RIGHT} {value_raw}')
113113

haco/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.7
1+
0.1.8

0 commit comments

Comments
 (0)