mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 02:03:27 +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]
|
||||
if self._hassio_discovery:
|
||||
title = "Add-on"
|
||||
title = "App"
|
||||
|
||||
return self.async_create_entry(
|
||||
title=title,
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
},
|
||||
"step": {
|
||||
"hassio_confirm": {
|
||||
"description": "Do you want to configure Home Assistant to connect to the motionEye service provided by the add-on: {addon}?",
|
||||
"title": "motionEye via Home Assistant add-on"
|
||||
"description": "Do you want to configure Home Assistant to connect to the motionEye service provided by the app: {addon}?",
|
||||
"title": "motionEye via Home Assistant app"
|
||||
},
|
||||
"user": {
|
||||
"data": {
|
||||
|
||||
@@ -121,7 +121,7 @@ async def test_hassio_success(hass: HomeAssistant) -> None:
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result3.get("type") is FlowResultType.CREATE_ENTRY
|
||||
assert result3.get("title") == "Add-on"
|
||||
assert result3.get("title") == "App"
|
||||
assert result3.get("data") == {
|
||||
CONF_URL: TEST_URL,
|
||||
CONF_ADMIN_USERNAME: "admin-username",
|
||||
|
||||
Reference in New Issue
Block a user