Skip to content

Commit 80aa476

Browse files
committed
Fixed the device tracker
Made a mistake the cause and error on not updated the device tracker. Fixed now (i hope)
1 parent 79e3b27 commit 80aa476

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

custom_components/cardata/device_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def _apply_new_coordinates(self, lat: float, lon: float, reason: str) -> None:
387387
"""Apply new coordinates and trigger Home Assistant state update."""
388388
self._current_lat = lat
389389
self._current_lon = lon
390-
self.async_write_ha_state()
390+
self.schedule_update_ha_state()
391391
_LOGGER.debug(
392392
"Location updated for %s (%s): lat=%.6f lon=%.6f",
393393
self._vin,

custom_components/cardata/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"documentation": "https://github.com/kvanbiesen/bmw-cardata-ha/",
1010
"iot_class": "cloud_push",
1111
"requirements": [],
12-
"version": "4.1.3",
12+
"version": "4.1.4",
1313
"integration_type": "device"
1414
}

hacs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "BMW CarData",
33
"repository": "kvanbiesen/bmw-cardata-ha",
4-
"homeassistant": "2022.6.0",
4+
"homeassistant": "2024.6.0",
55
"zip_release": false,
6-
"version": "4.1.3"
6+
"version": "4.1.4"
77
}

0 commit comments

Comments
 (0)