From 5da8d62f330ba57a1144ad4ee07b9c4bc865809a Mon Sep 17 00:00:00 2001 From: Shay Levy Date: Wed, 19 Jan 2022 22:00:54 +0200 Subject: [PATCH] Add webostv YAML to config flow migration warning (#64450) --- homeassistant/components/webostv/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/webostv/__init__.py b/homeassistant/components/webostv/__init__.py index 634dca3b48c..c357849492e 100644 --- a/homeassistant/components/webostv/__init__.py +++ b/homeassistant/components/webostv/__init__.py @@ -158,6 +158,12 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool: try: await client.connect() except WEBOSTV_EXCEPTIONS: + if tries == 0: + _LOGGER.warning( + "Please make sure webOS TV %s is turned on to complete " + "the migration of configuration.yaml to the UI", + entity_id, + ) wait_time = 2 ** min(tries, 4) * 5 tries += 1 await asyncio.sleep(wait_time)