Bump aiohasupervisor to version 0.2.2b6 (#136814)

This commit is contained in:
Erik Montnemery 2025-01-29 10:42:30 +01:00 committed by GitHub
parent a6d132a337
commit 646e0d4626
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 32 additions and 7 deletions

View File

@ -44,6 +44,7 @@ from .const import DOMAIN, EVENT_SUPERVISOR_EVENT
from .handler import get_supervisor_client from .handler import get_supervisor_client
LOCATION_CLOUD_BACKUP = ".cloud_backup" LOCATION_CLOUD_BACKUP = ".cloud_backup"
LOCATION_LOCAL = ".local"
MOUNT_JOBS = ("mount_manager_create_mount", "mount_manager_remove_mount") MOUNT_JOBS = ("mount_manager_create_mount", "mount_manager_remove_mount")
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -6,6 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/hassio", "documentation": "https://www.home-assistant.io/integrations/hassio",
"iot_class": "local_polling", "iot_class": "local_polling",
"quality_scale": "internal", "quality_scale": "internal",
"requirements": ["aiohasupervisor==0.2.2b5"], "requirements": ["aiohasupervisor==0.2.2b6"],
"single_config_entry": true "single_config_entry": true
} }

View File

@ -3,7 +3,7 @@
aiodhcpwatcher==1.0.2 aiodhcpwatcher==1.0.2
aiodiscover==2.1.0 aiodiscover==2.1.0
aiodns==3.2.0 aiodns==3.2.0
aiohasupervisor==0.2.2b5 aiohasupervisor==0.2.2b6
aiohttp-asyncmdnsresolver==0.0.1 aiohttp-asyncmdnsresolver==0.0.1
aiohttp-fast-zlib==0.2.0 aiohttp-fast-zlib==0.2.0
aiohttp==3.11.11 aiohttp==3.11.11

View File

@ -27,7 +27,7 @@ dependencies = [
# Integrations may depend on hassio integration without listing it to # Integrations may depend on hassio integration without listing it to
# change behavior based on presence of supervisor. Deprecated with #127228 # change behavior based on presence of supervisor. Deprecated with #127228
# Lib can be removed with 2025.11 # Lib can be removed with 2025.11
"aiohasupervisor==0.2.2b5", "aiohasupervisor==0.2.2b6",
"aiohttp==3.11.11", "aiohttp==3.11.11",
"aiohttp_cors==0.7.0", "aiohttp_cors==0.7.0",
"aiohttp-fast-zlib==0.2.0", "aiohttp-fast-zlib==0.2.0",

2
requirements.txt generated
View File

@ -4,7 +4,7 @@
# Home Assistant Core # Home Assistant Core
aiodns==3.2.0 aiodns==3.2.0
aiohasupervisor==0.2.2b5 aiohasupervisor==0.2.2b6
aiohttp==3.11.11 aiohttp==3.11.11
aiohttp_cors==0.7.0 aiohttp_cors==0.7.0
aiohttp-fast-zlib==0.2.0 aiohttp-fast-zlib==0.2.0

2
requirements_all.txt generated
View File

@ -261,7 +261,7 @@ aioguardian==2022.07.0
aioharmony==0.4.1 aioharmony==0.4.1
# homeassistant.components.hassio # homeassistant.components.hassio
aiohasupervisor==0.2.2b5 aiohasupervisor==0.2.2b6
# homeassistant.components.homekit_controller # homeassistant.components.homekit_controller
aiohomekit==3.2.7 aiohomekit==3.2.7

View File

@ -246,7 +246,7 @@ aioguardian==2022.07.0
aioharmony==0.4.1 aioharmony==0.4.1
# homeassistant.components.hassio # homeassistant.components.hassio
aiohasupervisor==0.2.2b5 aiohasupervisor==0.2.2b6
# homeassistant.components.homekit_controller # homeassistant.components.homekit_controller
aiohomekit==3.2.7 aiohomekit==3.2.7

View File

@ -35,7 +35,7 @@ from homeassistant.components.backup import (
Folder, Folder,
) )
from homeassistant.components.hassio import DOMAIN 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.core import HomeAssistant
from homeassistant.setup import async_setup_component from homeassistant.setup import async_setup_component
@ -53,6 +53,11 @@ TEST_BACKUP = supervisor_backups.Backup(
), ),
date=datetime.fromisoformat("1970-01-01T00:00:00Z"), date=datetime.fromisoformat("1970-01-01T00:00:00Z"),
location=None, location=None,
location_attributes={
LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes(
protected=False, size_bytes=1048576
)
},
locations={None}, locations={None},
name="Test", name="Test",
protected=False, protected=False,
@ -77,6 +82,7 @@ TEST_BACKUP_DETAILS = supervisor_backups.BackupComplete(
homeassistant_exclude_database=False, homeassistant_exclude_database=False,
homeassistant="2024.12.0", homeassistant="2024.12.0",
location=TEST_BACKUP.location, location=TEST_BACKUP.location,
location_attributes=TEST_BACKUP.location_attributes,
locations=TEST_BACKUP.locations, locations=TEST_BACKUP.locations,
name=TEST_BACKUP.name, name=TEST_BACKUP.name,
protected=TEST_BACKUP.protected, protected=TEST_BACKUP.protected,
@ -97,6 +103,11 @@ TEST_BACKUP_2 = supervisor_backups.Backup(
), ),
date=datetime.fromisoformat("1970-01-01T00:00:00Z"), date=datetime.fromisoformat("1970-01-01T00:00:00Z"),
location=None, location=None,
location_attributes={
LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes(
protected=False, size_bytes=1048576
)
},
locations={None}, locations={None},
name="Test", name="Test",
protected=False, protected=False,
@ -121,6 +132,7 @@ TEST_BACKUP_DETAILS_2 = supervisor_backups.BackupComplete(
homeassistant_exclude_database=False, homeassistant_exclude_database=False,
homeassistant=None, homeassistant=None,
location=TEST_BACKUP_2.location, location=TEST_BACKUP_2.location,
location_attributes=TEST_BACKUP_2.location_attributes,
locations=TEST_BACKUP_2.locations, locations=TEST_BACKUP_2.locations,
name=TEST_BACKUP_2.name, name=TEST_BACKUP_2.name,
protected=TEST_BACKUP_2.protected, protected=TEST_BACKUP_2.protected,
@ -141,6 +153,11 @@ TEST_BACKUP_3 = supervisor_backups.Backup(
), ),
date=datetime.fromisoformat("1970-01-01T00:00:00Z"), date=datetime.fromisoformat("1970-01-01T00:00:00Z"),
location="share", location="share",
location_attributes={
LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes(
protected=False, size_bytes=1048576
)
},
locations={"share"}, locations={"share"},
name="Test", name="Test",
protected=False, protected=False,
@ -165,6 +182,7 @@ TEST_BACKUP_DETAILS_3 = supervisor_backups.BackupComplete(
homeassistant_exclude_database=False, homeassistant_exclude_database=False,
homeassistant=None, homeassistant=None,
location=TEST_BACKUP_3.location, location=TEST_BACKUP_3.location,
location_attributes=TEST_BACKUP_3.location_attributes,
locations=TEST_BACKUP_3.locations, locations=TEST_BACKUP_3.locations,
name=TEST_BACKUP_3.name, name=TEST_BACKUP_3.name,
protected=TEST_BACKUP_3.protected, protected=TEST_BACKUP_3.protected,
@ -186,6 +204,11 @@ TEST_BACKUP_4 = supervisor_backups.Backup(
), ),
date=datetime.fromisoformat("1970-01-01T00:00:00Z"), date=datetime.fromisoformat("1970-01-01T00:00:00Z"),
location=None, location=None,
location_attributes={
LOCATION_LOCAL: supervisor_backups.BackupLocationAttributes(
protected=False, size_bytes=1048576
)
},
locations={None}, locations={None},
name="Test", name="Test",
protected=False, protected=False,
@ -210,6 +233,7 @@ TEST_BACKUP_DETAILS_4 = supervisor_backups.BackupComplete(
homeassistant_exclude_database=True, homeassistant_exclude_database=True,
homeassistant="2024.12.0", homeassistant="2024.12.0",
location=TEST_BACKUP.location, location=TEST_BACKUP.location,
location_attributes=TEST_BACKUP.location_attributes,
locations=TEST_BACKUP.locations, locations=TEST_BACKUP.locations,
name=TEST_BACKUP.name, name=TEST_BACKUP.name,
protected=TEST_BACKUP.protected, protected=TEST_BACKUP.protected,