diff --git a/homeassistant/components/daikin/config_flow.py b/homeassistant/components/daikin/config_flow.py index 467d91328b5..7576aa8a91b 100644 --- a/homeassistant/components/daikin/config_flow.py +++ b/homeassistant/components/daikin/config_flow.py @@ -130,6 +130,13 @@ class FlowHandler(config_entries.ConfigFlow): """Prepare configuration for a discovered Daikin device.""" _LOGGER.debug("Zeroconf user_input: %s", discovery_info) devices = Discovery().poll(ip=discovery_info[CONF_HOST]) + if not devices: + _LOGGER.debug( + "Could not find MAC-address for %s," + " make sure the required UDP ports are open (see integration documentation).", + discovery_info[CONF_HOST], + ) + return self.async_abort(reason="cannot_connect") await self.async_set_unique_id(next(iter(devices))[KEY_MAC]) self._abort_if_unique_id_configured() self.host = discovery_info[CONF_HOST] diff --git a/homeassistant/components/daikin/strings.json b/homeassistant/components/daikin/strings.json index c60163577a6..a8ebe0911b6 100644 --- a/homeassistant/components/daikin/strings.json +++ b/homeassistant/components/daikin/strings.json @@ -12,7 +12,8 @@ } }, "abort": { - "already_configured": "[%key:common::config_flow::abort::already_configured_device%]" + "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" }, "error": { "device_fail": "[%key:common::config_flow::error::unknown%]",