Fix bug when on_connect happens twice

This commit is contained in:
Edgar P. Burkhart 2025-04-24 16:28:26 +02:00
parent 5c7c8836f7
commit 3f36bab253
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -105,7 +105,8 @@ class HassClient(Client):
self.publish_availability()
self.init_subs()
self.timer.start()
if self.timer.ident is None:
self.timer.start()
@property
def state_topic(self) -> str: