Fix Starline GPS count sensor (#110348)

This commit is contained in:
Nikolay Vasilchuk 2024-02-12 19:07:22 +03:00 committed by Franck Nijhof
parent da61564f82
commit 56ceadaeeb
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

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