1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Upgrade boto3 to 1.20.24 + aiobotocore to 2.1.0 (#64045)

This commit is contained in:
Marc Mueller
2022-01-14 17:10:09 +01:00
committed by GitHub
parent 0407f60955
commit b17860a7dd
8 changed files with 22 additions and 18 deletions

View File

@@ -27,7 +27,7 @@ _LOGGER = logging.getLogger(__name__)
async def get_available_regions(hass, service):
"""Get available regions for a service."""
session = aiobotocore.get_session()
session = aiobotocore.session.get_session()
return await session.get_available_regions(service)
@@ -83,10 +83,10 @@ async def async_get_service(hass, config, discovery_info=None):
if session is None:
if (profile := aws_config.get(CONF_PROFILE_NAME)) is not None:
session = aiobotocore.AioSession(profile=profile)
session = aiobotocore.session.AioSession(profile=profile)
del aws_config[CONF_PROFILE_NAME]
else:
session = aiobotocore.AioSession()
session = aiobotocore.session.AioSession()
aws_config[CONF_REGION] = region_name