Rename add-on to app in motionEye discovery flow (#161707)

This commit is contained in:
Manu
2026-01-27 21:48:38 +01:00
committed by GitHub
parent 1f163dfcbd
commit 83ace00e14
3 changed files with 4 additions and 4 deletions

View File

@@ -143,7 +143,7 @@ class MotionEyeConfigFlow(ConfigFlow, domain=DOMAIN):
title = user_input[CONF_URL] title = user_input[CONF_URL]
if self._hassio_discovery: if self._hassio_discovery:
title = "Add-on" title = "App"
return self.async_create_entry( return self.async_create_entry(
title=title, title=title,

View File

@@ -12,8 +12,8 @@
}, },
"step": { "step": {
"hassio_confirm": { "hassio_confirm": {
"description": "Do you want to configure Home Assistant to connect to the motionEye service provided by the add-on: {addon}?", "description": "Do you want to configure Home Assistant to connect to the motionEye service provided by the app: {addon}?",
"title": "motionEye via Home Assistant add-on" "title": "motionEye via Home Assistant app"
}, },
"user": { "user": {
"data": { "data": {

View File

@@ -121,7 +121,7 @@ async def test_hassio_success(hass: HomeAssistant) -> None:
await hass.async_block_till_done() await hass.async_block_till_done()
assert result3.get("type") is FlowResultType.CREATE_ENTRY assert result3.get("type") is FlowResultType.CREATE_ENTRY
assert result3.get("title") == "Add-on" assert result3.get("title") == "App"
assert result3.get("data") == { assert result3.get("data") == {
CONF_URL: TEST_URL, CONF_URL: TEST_URL,
CONF_ADMIN_USERNAME: "admin-username", CONF_ADMIN_USERNAME: "admin-username",