Fix bug when on_connect happens twice
This commit is contained in:
parent
5c7c8836f7
commit
3f36bab253
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue