Skip to content

Commit

Permalink
Fixed the bug that the vehicle data sensor was only created for the l…
Browse files Browse the repository at this point in the history
…ast vehicle and not all of them.
  • Loading branch information
Triple-S authored and cdnninja committed Nov 15, 2023
1 parent d0e24ed commit c4ddc84
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/kia_uvo/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,10 @@ async def async_setup_entry(
entities.append(
HyundaiKiaConnectSensor(coordinator, description, vehicle)
)
entities.append(
VehicleEntity(coordinator, coordinator.vehicle_manager.vehicles[vehicle_id])
)
async_add_entities(entities)
async_add_entities(
[VehicleEntity(coordinator, coordinator.vehicle_manager.vehicles[vehicle_id])],
True,
)
return True


Expand Down

0 comments on commit c4ddc84

Please sign in to comment.