Add configuration.yaml deprecation warning to Epson (#50403)

* add deprecation warning

* Break long string

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Pawel 2021-05-11 12:45:03 +02:00 committed by GitHub
parent 50a88eb6c0
commit bc9f0caf4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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