moved imports to top level (#27496)
This commit is contained in:
1 parent
468e6c30b3
commit
2c8e24eb14
2 files changed
+4
-4
No files matched your search
@@ -4,6 +4,8 @@ import base64
|
||||
import json
|
||||
import logging
|
||||
|
||||
import aiobotocore
|
||||
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_TARGET,
|
||||
ATTR_TITLE,
|
||||
@@ -26,7 +28,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
async def get_available_regions(hass, service):
|
||||
"""Get available regions for a service."""
|
||||
import aiobotocore
|
||||
|
||||
session = aiobotocore.get_session()
|
||||
# get_available_regions is not a coroutine since it does not perform
|
||||
@@ -41,8 +42,6 @@ async def async_get_service(hass, config, discovery_info=None):
|
||||
_LOGGER.error("Please config aws notify platform in aws component")
|
||||
return None
|
||||
|
||||
import aiobotocore
|
||||
|
||||
session = None
|
||||
|
||||
conf = discovery_info
|
||||
|
||||
Reference in new issue
Block a user