def get_ui(self, cfg, id=None): m = HDDTempMeter(self.app).prepare(cfg) self.title = cfg return UI.Label(text='%.2f °C'%m.get_value())