Skip to content

Commit

Permalink
v3.2.0b3
Browse files Browse the repository at this point in the history
  • Loading branch information
dwainscheeren committed Jul 19, 2022
1 parent e654141 commit 4a3ac24
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions custom_components/dwains_dashboard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def ws_handle_install_blueprint(
os.makedirs(hass.config.path("dwains-dashboard/button_card_templates/blueprints"))

with open(hass.config.path("dwains-dashboard/button_card_templates/blueprints/"+filename), 'w') as f:
yaml.safe_dump(filecontent.get("button_card_templates"), f, default_flow_style=False)
yaml.dump(filecontent.get("button_card_templates"), f, default_flow_style=False, sort_keys=False)

filecontent.pop("button_card_templates")

Expand All @@ -288,15 +288,15 @@ async def ws_handle_install_blueprint(
os.makedirs(hass.config.path("dwains-dashboard/apexcharts_card_templates/blueprints"))

with open(hass.config.path("dwains-dashboard/apexcharts_card_templates/blueprints/"+filename), 'w') as f:
yaml.safe_dump(filecontent.get("apexcharts_card_templates"), f, default_flow_style=False)
yaml.dump(filecontent.get("apexcharts_card_templates"), f, default_flow_style=False, sort_keys=False)

filecontent.pop("apexcharts_card_templates")

if not os.path.exists(hass.config.path("dwains-dashboard/blueprints")):
os.makedirs(hass.config.path("dwains-dashboard/blueprints"))

with open(hass.config.path("dwains-dashboard/blueprints/"+filename), 'w') as f:
yaml.safe_dump(filecontent, f, default_flow_style=False)
yaml.dump(filecontent, f, default_flow_style=False, sort_keys=False)

#reload_configuration(hass)

Expand Down Expand Up @@ -375,7 +375,7 @@ async def ws_handle_edit_area_button(
os.makedirs(hass.config.path("dwains-dashboard/configs"))

with open(hass.config.path("dwains-dashboard/configs/areas.yaml"), 'w') as f:
yaml.safe_dump(areas, f, default_flow_style=False)
yaml.dump(areas, f, default_flow_style=False, sort_keys=False)

hass.bus.async_fire("dwains_dashboard_homepage_card_reload")

Expand Down Expand Up @@ -422,7 +422,7 @@ async def ws_handle_edit_area_bool_value(
os.makedirs(hass.config.path("dwains-dashboard/configs"))

with open(hass.config.path("dwains-dashboard/configs/areas.yaml"), 'w') as f:
yaml.safe_dump(areas, f, default_flow_style=False)
yaml.dump(areas, f, default_flow_style=False, sort_keys=False)


hass.bus.async_fire("dwains_dashboard_homepage_card_reload")
Expand Down Expand Up @@ -476,7 +476,7 @@ async def ws_handle_edit_homepage_header(
os.makedirs(hass.config.path("dwains-dashboard/configs"))

with open(hass.config.path("dwains-dashboard/configs/settings.yaml"), 'w') as f:
yaml.safe_dump(homepage_header, f, default_flow_style=False)
yaml.dump(homepage_header, f, default_flow_style=False, sort_keys=False)

hass.bus.async_fire("dwains_dashboard_homepage_card_reload")

Expand Down Expand Up @@ -524,7 +524,7 @@ async def ws_handle_edit_device_button(
os.makedirs(hass.config.path("dwains-dashboard/configs"))

with open(hass.config.path("dwains-dashboard/configs/devices.yaml"), 'w') as f:
yaml.safe_dump(devices, f, default_flow_style=False)
yaml.dump(devices, f, default_flow_style=False, sort_keys=False)

hass.bus.async_fire("dwains_dashboard_devicespage_card_reload")
hass.bus.async_fire("dwains_dashboard_navigation_card_reload")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/dwains_dashboard/const.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DOMAIN = "dwains_dashboard"
VERSION = "3.2.0b2"
VERSION = "3.2.0b3"
2 changes: 1 addition & 1 deletion custom_components/dwains_dashboard/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": ["lovelace", "http", "frontend"],
"codeowners": ["@dwainscheeren"],
"config_flow": true,
"version": "3.2.0b2",
"version": "3.2.0b3",
"iot_class": "calculated"
}

0 comments on commit 4a3ac24

Please sign in to comment.