diff --git a/homeassistant/components/sensor/vasttrafik.py b/homeassistant/components/sensor/vasttrafik.py index 7ef4170dd5a..afa07f46fde 100644 --- a/homeassistant/components/sensor/vasttrafik.py +++ b/homeassistant/components/sensor/vasttrafik.py @@ -59,6 +59,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): planner = vasttrafik.JournyPlanner( config.get(CONF_KEY), config.get(CONF_SECRET)) sensors = [] + for departure in config.get(CONF_DEPARTURES): sensors.append( VasttrafikDepartureSensor( @@ -116,7 +117,7 @@ class VasttrafikDepartureSensor(Entity): def state(self): """Return the next departure time.""" if not self._departureboard: - _LOGGER.warning( + _LOGGER.debug( "No departures from %s heading %s", self._departure['name'], self._heading['name'] if self._heading else 'ANY') @@ -143,5 +144,5 @@ class VasttrafikDepartureSensor(Entity): direction=self._heading['id'] if self._heading else None, date=datetime.now()+self._delay) except self._vasttrafik.Error: - _LOGGER.warning("Unable to read departure board, updating token") + _LOGGER.debug("Unable to read departure board, updating token") self._planner.update_token()