def publish_status(self):
    status = {'version': version()}
    self.mqtt_publish_message(suffix='status', payload=json.dumps(status))
    uptime = {'minutes': self.service.uptime, 'started': self.service.startup.isoformat()}
    self.mqtt_publish_message(suffix='uptime', payload=json.dumps(uptime))
def publish_status(self):
    status = {'version': version()}
    self.mqtt_publish_message(suffix='status', payload=json.dumps(status))
    uptime = {'minutes': self.service.uptime, 'started': self.service.startup.isoformat()}
    self.mqtt_publish_message(suffix='uptime', payload=json.dumps(uptime))