mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
fix: the missing of @property
This commit is contained in:
parent
7f456f111f
commit
b9b1354336
@ -113,6 +113,7 @@ class DeviceTracker(MIoTServiceEntity, TrackerEntity):
|
||||
return None if self._prop_latitude is None else self.get_prop_value(
|
||||
prop=self._prop_latitude)
|
||||
|
||||
@property
|
||||
def longitude(self) -> Optional[float]:
|
||||
"""The longitude coordinate of the device."""
|
||||
return None if self._prop_longitude is None else self.get_prop_value(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user