From 1d73952ac10e834eb2b1e354310d866e77da8904 Mon Sep 17 00:00:00 2001 From: Josh Willox Date: Tue, 19 Nov 2024 19:15:12 +1100 Subject: [PATCH] fix: replace deprecated `is_hassio` method in HA 2024.11 (#165) Fixes: #163, #158 --- custom_components/auto_backup/__init__.py | 2 +- custom_components/auto_backup/config_flow.py | 2 +- hacs.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/auto_backup/__init__.py b/custom_components/auto_backup/__init__.py index 8f2b235..500afb0 100644 --- a/custom_components/auto_backup/__init__.py +++ b/custom_components/auto_backup/__init__.py @@ -14,13 +14,13 @@ ATTR_FOLDERS, ATTR_ADDONS, ATTR_PASSWORD, - is_hassio, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_NAME, __version__ from homeassistant.core import HomeAssistant, callback, ServiceCall from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.aiohttp_client import async_get_clientsession +from homeassistant.helpers.hassio import is_hassio from homeassistant.helpers.json import JSONEncoder from homeassistant.helpers.storage import Store from homeassistant.loader import bind_hass diff --git a/custom_components/auto_backup/config_flow.py b/custom_components/auto_backup/config_flow.py index cfed818..15900e6 100644 --- a/custom_components/auto_backup/config_flow.py +++ b/custom_components/auto_backup/config_flow.py @@ -4,8 +4,8 @@ import voluptuous as vol from homeassistant import config_entries -from homeassistant.components.hassio import is_hassio from homeassistant.core import callback, HomeAssistant +from homeassistant.helpers.hassio import is_hassio from . import is_backup from .const import DOMAIN, DEFAULT_BACKUP_TIMEOUT, CONF_AUTO_PURGE, CONF_BACKUP_TIMEOUT diff --git a/hacs.json b/hacs.json index 07fed50..730f342 100644 --- a/hacs.json +++ b/hacs.json @@ -3,5 +3,5 @@ "zip_release": true, "hide_default_branch": true, "filename": "auto_backup.zip", - "homeassistant": "2023.4.0" + "homeassistant": "2024.11.0" }