Rename reconfigure step in apple_tv (#112438)

This commit is contained in:
G Johansson 2024-03-05 21:36:46 +01:00 committed by GitHub
parent 7c9891fff9
commit 4bdcab7cc2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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."
},