mirror of
https://github.com/home-assistant/core.git
synced 2026-09-04 10:05:34 -05:00
Refactor None handling renault device_tracker (#167298)
This commit is contained in:
@@ -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, ...] = (
|
||||
|
||||
Reference in New Issue
Block a user