Skip to content

Commit

Permalink
address deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wtadler committed Feb 28, 2024
1 parent 6dbb1b8 commit f7b1e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/leafspy/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ATTR_LONGITUDE,
ATTR_BATTERY_LEVEL,
)
from homeassistant.components.device_tracker.const import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.const import SourceType
from homeassistant.components.device_tracker.config_entry import (
TrackerEntity
)
Expand Down Expand Up @@ -118,7 +118,7 @@ def should_poll(self):
@property
def source_type(self):
"""Return the source type of the car."""
return SOURCE_TYPE_GPS
return SourceType.GPS

@property
def device_info(self):
Expand Down

0 comments on commit f7b1e2f

Please sign in to comment.