Deprecates srp_energy integration (ADR-0004) (#25754)

This commit is contained in:
Franck Nijhof 2019-08-07 21:41:44 +02:00 committed by Pascal Vizeli
parent 84f464d089
commit 07499faa9c

View File

@ -43,6 +43,12 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None): def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the SRP energy.""" """Set up the SRP energy."""
_LOGGER.warning(
"The srp_energy integration is deprecated and will be removed "
"in Home Assistant 0.100.0. For more information see ADR-0004:"
"https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md"
)
name = config[CONF_NAME] name = config[CONF_NAME]
username = config[CONF_USERNAME] username = config[CONF_USERNAME]
password = config[CONF_PASSWORD] password = config[CONF_PASSWORD]