Use SourceType.ROUTER in Tractive integration (#76071)

Use SourceType.ROUTER
This commit is contained in:
Maciej Bieniek 2022-08-02 12:40:14 +02:00 committed by GitHub
parent fe6d6b81e3
commit 320b264d03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,6 +57,8 @@ class TractiveDeviceTracker(TractiveEntity, TrackerEntity):
"""Return the source type, eg gps or router, of the device.""" """Return the source type, eg gps or router, of the device."""
if self._source_type == "PHONE": if self._source_type == "PHONE":
return SourceType.BLUETOOTH return SourceType.BLUETOOTH
if self._source_type == "KNOWN_WIFI":
return SourceType.ROUTER
return SourceType.GPS return SourceType.GPS
@property @property