diff --git a/custom_components/dwains_dashboard/__init__.py b/custom_components/dwains_dashboard/__init__.py index 9ded4f04..0bb62a3c 100755 --- a/custom_components/dwains_dashboard/__init__.py +++ b/custom_components/dwains_dashboard/__init__.py @@ -249,7 +249,8 @@ async def ws_handle_install_blueprint( """Handle save new blueprint.""" #filecontent = json.loads(msg["yamlCode"]) - filecontent = yaml.safe_load(json.loads(msg["yamlCode"])) + #filecontent = yaml.safe_load(json.loads(msg["yamlCode"])) + filecontent = yaml.safe_load(json.dumps(json.loads(msg["yamlCode"]))) #_LOGGER.warning(filecontent) @@ -1607,4 +1608,4 @@ async def _update_listener(hass, config_entry): hass.bus.async_fire("dwains_dashboard_reload") - return True \ No newline at end of file + return True