move imports in sonos component (#27938)
This commit is contained in:
1 parent
eeb1bfc6f5
commit
bfba46d64a
6 files changed
+16
-16
No files matched your search
@@ -1,13 +1,14 @@
|
||||
"""Config flow for SONOS."""
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
import pysonos
|
||||
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.helpers import config_entry_flow
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
async def _async_has_devices(hass):
|
||||
"""Return if there are devices that can be discovered."""
|
||||
import pysonos
|
||||
|
||||
return await hass.async_add_executor_job(pysonos.discover)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user