mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
committed by
Anders Melchiorsen
parent
54c57fe5db
commit
7c5ac88aae
@@ -36,7 +36,9 @@ async def async_setup_platform(
|
|||||||
hass, config, async_add_entities, discovery_info=None):
|
hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Create the sensor."""
|
"""Create the sensor."""
|
||||||
from pyruter.api import Departures
|
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]
|
stop_id = config[CONF_STOP_ID]
|
||||||
destination = config.get(CONF_DESTINATION)
|
destination = config.get(CONF_DESTINATION)
|
||||||
name = config[CONF_NAME]
|
name = config[CONF_NAME]
|
||||||
|
Reference in New Issue
Block a user