mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 03:03:17 +01:00
Rename add-on to app in motionEye discovery flow (#161707)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user