From 646e0d46266550d168373412e8bee3edae95401c Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Wed, 29 Jan 2025 10:42:30 +0100 Subject: [PATCH] Bump aiohasupervisor to version 0.2.2b6 (#136814) --- homeassistant/components/hassio/backup.py | 1 + homeassistant/components/hassio/manifest.json | 2 +- homeassistant/package_constraints.txt | 2 +- pyproject.toml | 2 +- requirements.txt | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- tests/components/hassio/test_backup.py | 26 ++++++++++++++++++- 8 files changed, 32 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/hassio/backup.py b/homeassistant/components/hassio/backup.py index 4a9bfaded15..9362c03b0be 100644 --- a/homeassistant/components/hassio/backup.py +++ b/homeassistant/components/hassio/backup.py @@ -44,6 +44,7 @@ from .const import DOMAIN, EVENT_SUPERVISOR_EVENT from .handler import get_supervisor_client LOCATION_CLOUD_BACKUP = ".cloud_backup" +LOCATION_LOCAL = ".local" MOUNT_JOBS = ("mount_manager_create_mount", "mount_manager_remove_mount") _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hassio/manifest.json b/homeassistant/components/hassio/manifest.json index c9ecf6657e8..ccc0f23fb43 100644 --- a/homeassistant/components/hassio/manifest.json +++ b/homeassistant/components/hassio/manifest.json @@ -6,6 +6,6 @@ "documentation": "https://www.home-assistant.io/integrations/hassio", "iot_class": "local_polling", "quality_scale": "internal", - "requirements": ["aiohasupervisor==0.2.2b5"], + "requirements": ["aiohasupervisor==0.2.2b6"], "single_config_entry": true } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index f7f30bf7d71..f29c00244a6 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -3,7 +3,7 @@ aiodhcpwatcher==1.0.2 aiodiscover==2.1.0 aiodns==3.2.0 -aiohasupervisor==0.2.2b5 +aiohasupervisor==0.2.2b6 aiohttp-asyncmdnsresolver==0.0.1 aiohttp-fast-zlib==0.2.0 aiohttp==3.11.11 diff --git a/pyproject.toml b/pyproject.toml index 0e67a78954b..5393193a41e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dependencies = [ # Integrations may depend on hassio integration without listing it to # change behavior based on presence of supervisor. Deprecated with #127228 # Lib can be removed with 2025.11 - "aiohasupervisor==0.2.2b5", + "aiohasupervisor==0.2.2b6", "aiohttp==3.11.11", "aiohttp_cors==0.7.0", "aiohttp-fast-zlib==0.2.0", diff --git a/requirements.txt b/requirements.txt index 2ffb530393e..a98d53b6037 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ # Home Assistant Core aiodns==3.2.0 -aiohasupervisor==0.2.2b5 +aiohasupervisor==0.2.2b6 aiohttp==3.11.11 aiohttp_cors==0.7.0 aiohttp-fast-zlib==0.2.0 diff --git a/requirements_all.txt b/requirements_all.txt index d6fac067973..c8d7ccbe50f 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -261,7 +261,7 @@ aioguardian==2022.07.0 aioharmony==0.4.1 # homeassistant.components.hassio -aiohasupervisor==0.2.2b5 +aiohasupervisor==0.2.2b6 # homeassistant.components.homekit_controller aiohomekit==3.2.7 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 366edfd23ce..1a5c9ba91b9 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -246,7 +246,7 @@ aioguardian==2022.07.0 aioharmony==0.4.1 # homeassistant.components.hassio -aiohasupervisor==0.2.2b5 +aiohasupervisor==0.2.2b6 # homeassistant.components.homekit_controller aiohomekit==3.2.7 diff --git a/tests/components/hassio/test_backup.py b/tests/components/hassio/test_backup.py index 8cf8d11af04..1a5701a79cf 100644 --- a/tests/components/hassio/test_backup.py +++ b/tests/components/hassio/test_backup.py @@ -35,7 +35,7 @@ from homeassistant.components.backup import ( Folder, ) from homeassistant.components.hassio import DOMAIN -from homeassistant.components.hassio.backup import LOCATION_CLOUD_BACKUP +from homeassistant.components.hassio.backup import LOCATION_CLOUD_BACKUP, LOCATION_LOCAL from homeassistant.core import HomeAssistant from homeassistant.setup import async_setup_component @@ -53,6 +53,11 @@ TEST_BACKUP = supervisor_backups.Backup( ), date=datetime.fromisoformat("1970-01-01T00:00:00Z"), location=None, + location_attributes={ + LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes( + protected=False, size_bytes=1048576 + ) + }, locations={None}, name="Test", protected=False, @@ -77,6 +82,7 @@ TEST_BACKUP_DETAILS = supervisor_backups.BackupComplete( homeassistant_exclude_database=False, homeassistant="2024.12.0", location=TEST_BACKUP.location, + location_attributes=TEST_BACKUP.location_attributes, locations=TEST_BACKUP.locations, name=TEST_BACKUP.name, protected=TEST_BACKUP.protected, @@ -97,6 +103,11 @@ TEST_BACKUP_2 = supervisor_backups.Backup( ), date=datetime.fromisoformat("1970-01-01T00:00:00Z"), location=None, + location_attributes={ + LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes( + protected=False, size_bytes=1048576 + ) + }, locations={None}, name="Test", protected=False, @@ -121,6 +132,7 @@ TEST_BACKUP_DETAILS_2 = supervisor_backups.BackupComplete( homeassistant_exclude_database=False, homeassistant=None, location=TEST_BACKUP_2.location, + location_attributes=TEST_BACKUP_2.location_attributes, locations=TEST_BACKUP_2.locations, name=TEST_BACKUP_2.name, protected=TEST_BACKUP_2.protected, @@ -141,6 +153,11 @@ TEST_BACKUP_3 = supervisor_backups.Backup( ), date=datetime.fromisoformat("1970-01-01T00:00:00Z"), location="share", + location_attributes={ + LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes( + protected=False, size_bytes=1048576 + ) + }, locations={"share"}, name="Test", protected=False, @@ -165,6 +182,7 @@ TEST_BACKUP_DETAILS_3 = supervisor_backups.BackupComplete( homeassistant_exclude_database=False, homeassistant=None, location=TEST_BACKUP_3.location, + location_attributes=TEST_BACKUP_3.location_attributes, locations=TEST_BACKUP_3.locations, name=TEST_BACKUP_3.name, protected=TEST_BACKUP_3.protected, @@ -186,6 +204,11 @@ TEST_BACKUP_4 = supervisor_backups.Backup( ), date=datetime.fromisoformat("1970-01-01T00:00:00Z"), location=None, + location_attributes={ + LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes( + protected=False, size_bytes=1048576 + ) + }, locations={None}, name="Test", protected=False, @@ -210,6 +233,7 @@ TEST_BACKUP_DETAILS_4 = supervisor_backups.BackupComplete( homeassistant_exclude_database=True, homeassistant="2024.12.0", location=TEST_BACKUP.location, + location_attributes=TEST_BACKUP.location_attributes, locations=TEST_BACKUP.locations, name=TEST_BACKUP.name, protected=TEST_BACKUP.protected,