Fix Starline GPS count sensor ()

pull/110380/head
Nikolay Vasilchuk 2024-02-12 19:07:22 +03:00 committed by GitHub
parent 29ed82332c
commit 1a22189262
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
homeassistant/components/starline

View File

@ -139,7 +139,7 @@ class StarlineSensor(StarlineEntity, SensorEntity):
if self._key == "mileage" and self._device.mileage:
return self._device.mileage.get("val")
if self._key == "gps_count" and self._device.position:
return self._device.position["sat_qty"]
return self._device.position.get("sat_qty")
return None
@property