mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix Starline GPS count sensor (#110348)
This commit is contained in:
parent
29ed82332c
commit
1a22189262
@ -139,7 +139,7 @@ class StarlineSensor(StarlineEntity, SensorEntity):
|
|||||||
if self._key == "mileage" and self._device.mileage:
|
if self._key == "mileage" and self._device.mileage:
|
||||||
return self._device.mileage.get("val")
|
return self._device.mileage.get("val")
|
||||||
if self._key == "gps_count" and self._device.position:
|
if self._key == "gps_count" and self._device.position:
|
||||||
return self._device.position["sat_qty"]
|
return self._device.position.get("sat_qty")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user