Device tracker entities based on GPS should always publish updates (#31551)

pull/31645/head^2
Paulus Schoutsen 2020-02-08 10:56:48 -08:00 committed by GitHub
parent 1093e25a30
commit ca1319e1ef
1 changed files with 5 additions and 0 deletions

View File

@ -61,6 +61,11 @@ class BaseTrackerEntity(Entity):
class TrackerEntity(BaseTrackerEntity):
"""Represent a tracked device."""
@property
def force_update(self):
"""All updates need to be written to the state machine."""
return True
@property
def location_accuracy(self):
"""Return the location accuracy of the device.