From 84d81c5ced15ea1a9865552f6edafb1783c52d84 Mon Sep 17 00:00:00 2001 From: omriasta Date: Fri, 9 Aug 2024 07:33:24 -0400 Subject: [PATCH] Fix save json import (#162) * Bump minimum HA version to one with the JSON change --------- Co-authored-by: dlarrick --- custom_components/kumo/__init__.py | 3 ++- custom_components/kumo/config_flow.py | 3 ++- custom_components/kumo/manifest.json | 2 +- hacs.json | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/custom_components/kumo/__init__.py b/custom_components/kumo/__init__.py index 55d7f4e..ad1e7ff 100644 --- a/custom_components/kumo/__init__.py +++ b/custom_components/kumo/__init__.py @@ -8,7 +8,8 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.core import HomeAssistant -from homeassistant.util.json import load_json, save_json +from homeassistant.util.json import load_json +from homeassistant.helpers.json import save_json from .coordinator import KumoDataUpdateCoordinator from .const import ( diff --git a/custom_components/kumo/config_flow.py b/custom_components/kumo/config_flow.py index b6053d5..d879d77 100755 --- a/custom_components/kumo/config_flow.py +++ b/custom_components/kumo/config_flow.py @@ -4,7 +4,8 @@ import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.core import callback -from homeassistant.util.json import load_json, save_json +from homeassistant.util.json import load_json +from homeassistant.helpers.json import save_json from pykumo import KumoCloudAccount from requests.exceptions import ConnectionError diff --git a/custom_components/kumo/manifest.json b/custom_components/kumo/manifest.json index 03ef615..36e8e11 100755 --- a/custom_components/kumo/manifest.json +++ b/custom_components/kumo/manifest.json @@ -7,7 +7,7 @@ "dependencies": [], "codeowners": [ "@dlarrick" ], "requirements": ["pykumo==0.3.9"], - "version": "0.3.13", + "version": "0.3.14", "homeassistant": "2024.1.0", "iot_class": "local_polling", "integration_type": "hub" diff --git a/hacs.json b/hacs.json index 76200a4..8f7c532 100644 --- a/hacs.json +++ b/hacs.json @@ -1,5 +1,5 @@ { "name": "Mitsubishi Kumo Cloud", "render_readme": true, - "homeassistant": "2021.12.0" + "homeassistant": "2024.1.0" }