Loading src/webui/service/service/routes.py +0 −7 Original line number Original line Diff line number Diff line Loading @@ -112,13 +112,6 @@ def home(): ste=ServiceTypeEnum, sse=ServiceStatusEnum, active_drivers=active_drivers) ste=ServiceTypeEnum, sse=ServiceStatusEnum, active_drivers=active_drivers) #@service.route('add', methods=['GET', 'POST']) #def add(): # flash('Add service route called', 'danger') # raise NotImplementedError() # #return render_template('service/home.html') def get_hub_module_name(dev: Device) -> Optional[str]: def get_hub_module_name(dev: Device) -> Optional[str]: for cr in dev.device_config.config_rules: for cr in dev.device_config.config_rules: if cr.action == ConfigActionEnum.CONFIGACTION_SET and cr.custom and cr.custom.resource_key == "_connect/settings": if cr.action == ConfigActionEnum.CONFIGACTION_SET and cr.custom and cr.custom.resource_key == "_connect/settings": Loading Loading
src/webui/service/service/routes.py +0 −7 Original line number Original line Diff line number Diff line Loading @@ -112,13 +112,6 @@ def home(): ste=ServiceTypeEnum, sse=ServiceStatusEnum, active_drivers=active_drivers) ste=ServiceTypeEnum, sse=ServiceStatusEnum, active_drivers=active_drivers) #@service.route('add', methods=['GET', 'POST']) #def add(): # flash('Add service route called', 'danger') # raise NotImplementedError() # #return render_template('service/home.html') def get_hub_module_name(dev: Device) -> Optional[str]: def get_hub_module_name(dev: Device) -> Optional[str]: for cr in dev.device_config.config_rules: for cr in dev.device_config.config_rules: if cr.action == ConfigActionEnum.CONFIGACTION_SET and cr.custom and cr.custom.resource_key == "_connect/settings": if cr.action == ConfigActionEnum.CONFIGACTION_SET and cr.custom and cr.custom.resource_key == "_connect/settings": Loading