From b696f9ce5e310af4e6a72df45a6a779cf9d6c94d Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 7 Aug 2019 13:41:35 +0200 Subject: [PATCH] Deprecates ups integration (ADR-0004) (#25746) --- homeassistant/components/ups/sensor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant/components/ups/sensor.py b/homeassistant/components/ups/sensor.py index 0fff07d442f..cfe35a9a63f 100644 --- a/homeassistant/components/ups/sensor.py +++ b/homeassistant/components/ups/sensor.py @@ -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(