From 0d9981049173bdbf4fc708f30dcd7732e9bed41f Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Mon, 20 Jan 2020 09:09:42 -0800 Subject: [PATCH] fixed issue where xml did not read in custom icons --- daemon/core/xml/corexml.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/core/xml/corexml.py b/daemon/core/xml/corexml.py index df73901f..8cdc512c 100644 --- a/daemon/core/xml/corexml.py +++ b/daemon/core/xml/corexml.py @@ -762,7 +762,9 @@ class CoreXmlReader: node_id = get_int(device_element, "id") name = device_element.get("name") model = device_element.get("type") + icon = device_element.get("icon") options = NodeOptions(name, model) + options.icon = icon service_elements = device_element.find("services") if service_elements is not None: @@ -788,7 +790,9 @@ class CoreXmlReader: node_id = get_int(network_element, "id") name = network_element.get("name") node_type = NodeTypes[network_element.get("type")] + icon = network_element.get("icon") options = NodeOptions(name) + options.icon = icon position_element = network_element.find("position") if position_element is not None: