Refactor None handling renault device_tracker (#167298)

This commit is contained in:
epenet
2026-04-03 17:54:51 +02:00
committed by GitHub
parent 4efcb5a700
commit 27365a4457
@@ -52,12 +52,12 @@ class RenaultDeviceTracker(
@property
def latitude(self) -> float | None:
"""Return latitude value of the device."""
return self.coordinator.data.gpsLatitude if self.coordinator.data else None
return self.coordinator.data.gpsLatitude
@property
def longitude(self) -> float | None:
"""Return longitude value of the device."""
return self.coordinator.data.gpsLongitude if self.coordinator.data else None
return self.coordinator.data.gpsLongitude
DEVICE_TRACKER_TYPES: tuple[RenaultTrackerEntityDescription, ...] = (