You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
While experimenting with the example yamls, I noticed they will break with the following error if the vehicle_position_url is removed. The wiki states that this should be optional. Looking at the code, I'm not sure I'm following why it is breaking...
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 231, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gtfs_rt/sensor.py", line 78, in setup_platform
sensors.append(PublicTransportSensor(
File "/config/custom_components/gtfs_rt/sensor.py", line 97, in __init__
self.update()
File "/config/custom_components/gtfs_rt/sensor.py", line 145, in update
self.data.update()
File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 280, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/gtfs_rt/sensor.py", line 167, in update
positions, vehicles_trips, occupancy = self._get_vehicle_positions() if self._vehicle_position_url else {}
ValueError: not enough values to unpack (expected 3, got 0)
For example, this will load, but if removing the vehicle position line, it errors out.
Hi,
While experimenting with the example yamls, I noticed they will break with the following error if the vehicle_position_url is removed. The wiki states that this should be optional. Looking at the code, I'm not sure I'm following why it is breaking...
For example, this will load, but if removing the vehicle position line, it errors out.
The text was updated successfully, but these errors were encountered: