[modules/octoprint] small refactoring

see PR #621
This commit is contained in:
tobi-wan-kenobi 2020-05-03 19:39:40 +02:00
parent 05b3fcf863
commit cec1d3cbda

View file

@ -77,8 +77,6 @@ class Module(core.module.Module):
self.__printer_bed_temperature = "-"
self.__tool1_temperature = "-"
self.update_status()
core.input.register(self, button=core.input.LEFT_MOUSE, cmd=self.__show_popup)
def octoprint_status(self, widget):
@ -134,7 +132,7 @@ class Module(core.module.Module):
tool_id += 1
return tool_temperatures
def update_status(self):
def update(self):
try:
self.__octoprint_state = self.__get_octoprint_state()
@ -250,11 +248,4 @@ class Module(core.module.Module):
self.__webcam_images_queue = None
self.__webcam_images_worker.stop()
def update(self):
self.update_status()
def state(self, widget):
return []
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4