mirror of
https://github.com/home-assistant/core.git
synced 2026-09-06 05:22:44 +01:00
Bump aioamazondevices to 15.1.0 (#180002)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import asyncio
|
||||
from collections.abc import Mapping
|
||||
from pathlib import Path
|
||||
from typing import Any, override
|
||||
|
||||
from aioamazondevices.api import AmazonEchoApi
|
||||
@@ -10,6 +11,7 @@ from aioamazondevices.exceptions import (
|
||||
CannotConnect,
|
||||
CannotRetrieveData,
|
||||
)
|
||||
from aioamazondevices.structures import AmazonSaveDataConfig
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import ConfigFlow, ConfigFlowResult
|
||||
@@ -49,6 +51,9 @@ async def validate_input(hass: HomeAssistant, data: dict[str, Any]) -> dict[str,
|
||||
session,
|
||||
data[CONF_USERNAME],
|
||||
data[CONF_PASSWORD],
|
||||
save_data=AmazonSaveDataConfig(
|
||||
path=Path(hass.config.path(DOMAIN)),
|
||||
),
|
||||
)
|
||||
|
||||
return await api.login.login_mode_interactive(data[CONF_CODE])
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
from collections.abc import AsyncGenerator
|
||||
from contextlib import asynccontextmanager
|
||||
from datetime import timedelta
|
||||
from pathlib import Path
|
||||
from typing import override
|
||||
|
||||
from aioamazondevices.api import AmazonEchoApi
|
||||
@@ -17,6 +18,7 @@ from aioamazondevices.structures import (
|
||||
AmazonListEventType,
|
||||
AmazonListItem,
|
||||
AmazonMediaState,
|
||||
AmazonSaveDataConfig,
|
||||
AmazonVocalRecord,
|
||||
AmazonVolumeState,
|
||||
)
|
||||
@@ -127,7 +129,10 @@ class AmazonDevicesCoordinator(DataUpdateCoordinator[dict[str, AmazonDevice]]):
|
||||
session,
|
||||
entry.data[CONF_USERNAME],
|
||||
entry.data[CONF_PASSWORD],
|
||||
entry.data[CONF_LOGIN_DATA],
|
||||
login_data=entry.data[CONF_LOGIN_DATA],
|
||||
save_data=AmazonSaveDataConfig(
|
||||
path=Path(hass.config.path(DOMAIN)),
|
||||
),
|
||||
)
|
||||
device_registry = dr.async_get(hass)
|
||||
self.previous_devices: set[str] = {
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["aioamazondevices"],
|
||||
"quality_scale": "platinum",
|
||||
"requirements": ["aioamazondevices==14.2.2"]
|
||||
"requirements": ["aioamazondevices==15.1.0"]
|
||||
}
|
||||
|
||||
Generated
+1
-1
@@ -193,7 +193,7 @@ aioairzone-cloud==0.7.2
|
||||
aioairzone==1.0.5
|
||||
|
||||
# homeassistant.components.alexa_devices
|
||||
aioamazondevices==14.2.2
|
||||
aioamazondevices==15.1.0
|
||||
|
||||
# homeassistant.components.ambient_network
|
||||
# homeassistant.components.ambient_station
|
||||
|
||||
Reference in New Issue
Block a user