Skip to content

Commit

Permalink
Add deprecation warning (home-assistant#19515)
Browse files Browse the repository at this point in the history
* Update ruter.py

* formating
  • Loading branch information
ludeeus authored and amelchio committed Dec 22, 2018
1 parent 54c57fe commit 7c5ac88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion homeassistant/components/sensor/ruter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 7c5ac88

Please sign in to comment.