Deprecates ups integration (ADR-0004) (#25746)

This commit is contained in:
Franck Nijhof 2019-08-07 13:41:35 +02:00 committed by Pascal Vizeli
parent d3aac13065
commit b696f9ce5e

View File

@ -40,6 +40,12 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the UPS platform."""
import upsmychoice
_LOGGER.warning(
"The ups 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"
)
try:
cookie = hass.config.path(COOKIE)
session = upsmychoice.get_session(