Commit a8a9b0fc authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- Code cleanup
parent 756eb997
Loading
Loading
Loading
Loading
+0 −7
Original line number Original line Diff line number Diff line
@@ -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":