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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user