diff --git a/spejsvirt.py b/spejsvirt.py index 4eec677..9c9cf6b 100644 --- a/spejsvirt.py +++ b/spejsvirt.py @@ -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()