Retain status messages
parent
bc19af1a92
commit
46439ba2a6
|
@ -99,7 +99,7 @@ class LibvirtSpejsIOTClient(mqtt.Client):
|
||||||
return
|
return
|
||||||
|
|
||||||
state = DOMAIN_STATES.get(domain.state(0)[0])
|
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):
|
def run(self, args):
|
||||||
libvirt.virEventRegisterDefaultImpl()
|
libvirt.virEventRegisterDefaultImpl()
|
||||||
|
|
Loading…
Reference in New Issue