Move imports in wemo component (#27393)
This commit is contained in:
1 parent
e93ffa5688
commit
7b13f0caf7
5 files changed
+9
-9
No files matched your search
@@ -3,6 +3,7 @@ import asyncio
|
||||
import logging
|
||||
|
||||
import async_timeout
|
||||
from pywemo import discovery
|
||||
import requests
|
||||
|
||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
||||
@@ -15,7 +16,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Register discovered WeMo binary sensors."""
|
||||
from pywemo import discovery
|
||||
|
||||
if discovery_info is not None:
|
||||
location = discovery_info["ssdp_description"]
|
||||
|
||||
Reference in new issue
Block a user