Move imports in cast component (#27875)

This commit is contained in:
bouni authored and cgtobi committed 2019-10-19 00:59:58 +02:00
1 parent 8cf443110a
commit dc5d38128c
1 file changed
+4 -2
+4 -2
View File
@@ -1,12 +1,14 @@
"""Config flow for Cast."""
from homeassistant.helpers import config_entry_flow
from pychromecast.discovery import discover_chromecasts
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."""
from pychromecast.discovery import discover_chromecasts
return await hass.async_add_executor_job(discover_chromecasts)