move imports in sonos component (#27938)

This commit is contained in:
Michał Mrozek authored and cgtobi committed 2019-10-19 23:52:42 +02:00
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)