mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in cast component (#27875)
This commit is contained in:
parent
8cf443110a
commit
dc5d38128c
@ -1,12 +1,14 @@
|
|||||||
"""Config flow for Cast."""
|
"""Config flow for Cast."""
|
||||||
from homeassistant.helpers import config_entry_flow
|
from pychromecast.discovery import discover_chromecasts
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
from homeassistant.helpers import config_entry_flow
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
|
|
||||||
async def _async_has_devices(hass):
|
async def _async_has_devices(hass):
|
||||||
"""Return if there are devices that can be discovered."""
|
"""Return if there are devices that can be discovered."""
|
||||||
from pychromecast.discovery import discover_chromecasts
|
|
||||||
|
|
||||||
return await hass.async_add_executor_job(discover_chromecasts)
|
return await hass.async_add_executor_job(discover_chromecasts)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user