do not complain when no output module is configured
This commit is contained in:
@ -71,8 +71,11 @@ class HasOutputModule:
|
|||||||
|
|
||||||
def initModule(self):
|
def initModule(self):
|
||||||
super().initModule()
|
super().initModule()
|
||||||
if self.output_module:
|
try:
|
||||||
self.output_module.register_input(self.name, self.deactivate_control)
|
if self.output_module:
|
||||||
|
self.output_module.register_input(self.name, self.deactivate_control)
|
||||||
|
except Exception:
|
||||||
|
self.log.info(f'{self.name} has no output module')
|
||||||
|
|
||||||
def set_control_active(self, active):
|
def set_control_active(self, active):
|
||||||
"""to be overridden for switching hw control"""
|
"""to be overridden for switching hw control"""
|
||||||
|
Reference in New Issue
Block a user