Retain status messages
parent
bc19af1a92
commit
46439ba2a6
|
@ -99,7 +99,7 @@ class LibvirtSpejsIOTClient(mqtt.Client):
|
|||
return
|
||||
|
||||
state = DOMAIN_STATES.get(domain.state(0)[0])
|
||||
self.publish('%s%s/state' % (self.topic_prefix, domname), state)
|
||||
self.publish('%s%s/state' % (self.topic_prefix, domname), state, 0, True)
|
||||
|
||||
def run(self, args):
|
||||
libvirt.virEventRegisterDefaultImpl()
|
||||
|
|
Loading…
Reference in New Issue