async def init_config_flow(hass): """Init a configuration flow.""" await async_process_ha_core_config( hass, {"external_url": BASE_URL}, ) flow = config_flow.OwnTracksFlow() flow.hass = hass return flow
def init_config_flow(hass): """Init a configuration flow.""" hass.config.api = Mock(base_url=BASE_URL) flow = config_flow.OwnTracksFlow() flow.hass = hass return flow