Switch keymitt_ble to use no_devices_found (#88271)

* Switch keymitt_ble to use no_devices_found

* Switch keymitt_ble to use no_devices_found
pull/88281/head
J. Nick Koston 2023-02-16 15:52:29 -06:00 committed by GitHub
parent 06b1bf9c92
commit a059cd7f80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -99,7 +99,7 @@ class MicroBotConfigFlow(ConfigFlow, domain=DOMAIN):
self._discovered_advs[address] = parsed
if not self._discovered_advs:
return self.async_abort(reason="no_unconfigured_devices")
return self.async_abort(reason="no_devices_found")
if user_input is not None:
self._name = name_from_discovery(self._discovered_adv)

View File

@ -19,7 +19,7 @@
},
"abort": {
"already_configured_device": "[%key:common::config_flow::abort::already_configured_device%]",
"no_unconfigured_devices": "No unconfigured devices found.",
"no_devices_found": "[%key:common::config_flow::abort::no_devices_found%]",
"unknown": "[%key:common::config_flow::error::unknown%]",
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]"
}

View File

@ -125,7 +125,7 @@ async def test_user_setup_already_configured(hass: HomeAssistant) -> None:
DOMAIN, context={"source": SOURCE_USER}
)
assert result["type"] == FlowResultType.ABORT
assert result["reason"] == "no_unconfigured_devices"
assert result["reason"] == "no_devices_found"
async def test_user_no_devices(hass: HomeAssistant) -> None:
@ -138,7 +138,7 @@ async def test_user_no_devices(hass: HomeAssistant) -> None:
DOMAIN, context={"source": SOURCE_USER}
)
assert result["type"] == FlowResultType.ABORT
assert result["reason"] == "no_unconfigured_devices"
assert result["reason"] == "no_devices_found"
async def test_no_link(hass: HomeAssistant) -> None: