From bc9f0caf4ac1fd7b67d694cedb02876fe221c8e6 Mon Sep 17 00:00:00 2001 From: Pawel Date: Tue, 11 May 2021 12:45:03 +0200 Subject: [PATCH] Add configuration.yaml deprecation warning to Epson (#50403) * add deprecation warning * Break long string Co-authored-by: Martin Hjelmare --- homeassistant/components/epson/media_player.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/epson/media_player.py b/homeassistant/components/epson/media_player.py index 9910826cc3d..92a43330d69 100644 --- a/homeassistant/components/epson/media_player.py +++ b/homeassistant/components/epson/media_player.py @@ -87,6 +87,10 @@ async def async_setup_entry(hass, config_entry, async_add_entities): async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): """Set up the Epson projector.""" + _LOGGER.warning( + "Loading Espon projector via platform setup is deprecated; " + "Please remove it from your configuration" + ) hass.async_create_task( hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_IMPORT}, data=config