Skip to content

Commit 5fb0080

Browse files
committed
Bug in sensor
- bug fix for #48
1 parent bcdd07b commit 5fb0080

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

bmw-cardata-ha.zip

-148 Bytes
Binary file not shown.

custom_components/cardata/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"iot_class": "cloud_push",
1111
"issue_tracker": "https://github.com/kvanbiesen/bmw-cardata-ha/issues",
1212
"requirements": [],
13-
"version": "4.2.1"
13+
"version": "4.2.2"
1414
}

custom_components/cardata/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ async def async_handle_soc_update(vin: str) -> None:
933933
)
934934

935935
# add all metadata into metadata to reduce bloat
936-
metadata_entities: list[CardataVehicleMetadataSensor] = []
936+
metadata_entities: dict[str, CardataVehicleMetadataSensor] = {}
937937
for vin in coordinator.data.keys():
938938
unique_id = f"{vin}_diagnostics_vehicle_metadata"
939939

0 commit comments

Comments
 (0)