mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
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:
parent
50a88eb6c0
commit
bc9f0caf4a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user