From 4bdcab7cc2ea963f077f4ab81d46152e6d67ee46 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Tue, 5 Mar 2024 21:36:46 +0100 Subject: [PATCH] Rename reconfigure step in apple_tv (#112438) --- homeassistant/components/apple_tv/config_flow.py | 6 +++--- homeassistant/components/apple_tv/strings.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/apple_tv/config_flow.py b/homeassistant/components/apple_tv/config_flow.py index bd95aa6ca39..02117424f80 100644 --- a/homeassistant/components/apple_tv/config_flow.py +++ b/homeassistant/components/apple_tv/config_flow.py @@ -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 diff --git a/homeassistant/components/apple_tv/strings.json b/homeassistant/components/apple_tv/strings.json index 8730ffe01d5..4efe80f7bef 100644 --- a/homeassistant/components/apple_tv/strings.json +++ b/homeassistant/components/apple_tv/strings.json @@ -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." },