From 7c5ac88aae50e544afa88ac34550d2503bdc961d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 22 Dec 2018 14:01:31 +0100 Subject: [PATCH] Add deprecation warning (#19515) * Update ruter.py * formating --- homeassistant/components/sensor/ruter.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/sensor/ruter.py b/homeassistant/components/sensor/ruter.py index 7b02b51d0c0b5f..91966f0df9c812 100644 --- a/homeassistant/components/sensor/ruter.py +++ b/homeassistant/components/sensor/ruter.py @@ -36,7 +36,9 @@ async def async_setup_platform( hass, config, async_add_entities, discovery_info=None): """Create the sensor.""" from pyruter.api import Departures - + _LOGGER.warning("The API used in this sensor is shutting down soon, " + "you should consider starting to use the " + "'entur_public_transport' sensor instead") stop_id = config[CONF_STOP_ID] destination = config.get(CONF_DESTINATION) name = config[CONF_NAME]