From 0a5fdb2e6827c188be61debc99e1c67bf20ed7ba Mon Sep 17 00:00:00 2001 From: Simone Chemelli Date: Sat, 18 Sep 2021 15:42:36 +0200 Subject: [PATCH] Address late review of samsungtv (#56382) --- homeassistant/components/samsungtv/media_player.py | 2 +- homeassistant/components/samsungtv/strings.json | 3 +-- homeassistant/components/samsungtv/translations/en.json | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/samsungtv/media_player.py b/homeassistant/components/samsungtv/media_player.py index 4e17c65b461..8644335959e 100644 --- a/homeassistant/components/samsungtv/media_player.py +++ b/homeassistant/components/samsungtv/media_player.py @@ -120,7 +120,7 @@ class SamsungTVDevice(MediaPlayerEntity): """Access denied callback.""" LOGGER.debug("Access denied in getting remote object") self._auth_failed = True - self.hass.async_create_task( + self.hass.create_task( self.hass.config_entries.flow.async_init( DOMAIN, context={ diff --git a/homeassistant/components/samsungtv/strings.json b/homeassistant/components/samsungtv/strings.json index 89ac85f85eb..f413a7f1219 100644 --- a/homeassistant/components/samsungtv/strings.json +++ b/homeassistant/components/samsungtv/strings.json @@ -27,8 +27,7 @@ "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "not_supported": "This Samsung device is currently not supported.", "unknown": "[%key:common::config_flow::error::unknown%]", - "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]", - "missing_config_entry": "This Samsung device doesn't have a configuration entry." + "reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]" } } } \ No newline at end of file diff --git a/homeassistant/components/samsungtv/translations/en.json b/homeassistant/components/samsungtv/translations/en.json index fa5369012c0..8b48de950ee 100644 --- a/homeassistant/components/samsungtv/translations/en.json +++ b/homeassistant/components/samsungtv/translations/en.json @@ -6,7 +6,6 @@ "auth_missing": "Home Assistant is not authorized to connect to this Samsung TV. Check your TV's External Device Manager settings to authorize Home Assistant.", "cannot_connect": "Failed to connect", "id_missing": "This Samsung device doesn't have a SerialNumber.", - "missing_config_entry": "This Samsung device doesn't have a configuration entry.", "not_supported": "This Samsung device is currently not supported.", "reauth_successful": "Re-authentication was successful", "unknown": "Unexpected error"