mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Rename reconfigure step in apple_tv (#112438)
This commit is contained in:
@@ -157,9 +157,9 @@ class AppleTVConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
}
|
||||
self.scan_filter = self.unique_id
|
||||
self.context["identifier"] = self.unique_id
|
||||
return await self.async_step_reconfigure()
|
||||
return await self.async_step_restore_device()
|
||||
|
||||
async def async_step_reconfigure(
|
||||
async def async_step_restore_device(
|
||||
self, user_input: dict[str, str] | None = None
|
||||
) -> ConfigFlowResult:
|
||||
"""Inform user that reconfiguration is about to start."""
|
||||
@@ -168,7 +168,7 @@ class AppleTVConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
self.async_pair_next_protocol, allow_exist=True
|
||||
)
|
||||
|
||||
return self.async_show_form(step_id="reconfigure")
|
||||
return self.async_show_form(step_id="restore_device")
|
||||
|
||||
async def async_step_user(
|
||||
self, user_input: dict[str, str] | None = None
|
||||
|
@@ -9,7 +9,7 @@
|
||||
"device_input": "[%key:common::config_flow::data::device%]"
|
||||
}
|
||||
},
|
||||
"reconfigure": {
|
||||
"restore_device": {
|
||||
"title": "Device reconfiguration",
|
||||
"description": "Reconfigure this device to restore its functionality."
|
||||
},
|
||||
|
Reference in New Issue
Block a user