MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / __init__

Method __init__

src/astroprint/plugin/services/system.py:33–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 _validEvents = ['started', 'shutting_down', 'software_update']
32
33 def __init__(self):
34 super(SystemService, self).__init__()
35 self._eventManager.subscribe(Events.SOFTWARE_UPDATE, self._onSoftwareUpdate)
36 self._eventManager.subscribe(Events.SHUTTING_DOWN, self._onShutdown)
37
38 #EVENT
39 def _onSoftwareUpdate(self,event,value):

Callers

nothing calls this directly

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected