Fix gps accuracy issue

This commit is contained in:
Paulus Schoutsen 2015-10-02 13:49:55 -07:00
parent 3863d2985a
commit b2919c6504

View File

@ -339,7 +339,7 @@ class Device(Entity):
self.last_seen = dt_util.utcnow()
self.host_name = host_name
self.location_name = location_name
self.gps_accuracy = gps_accuracy
self.gps_accuracy = gps_accuracy or 0
self.battery = battery
if gps is None:
self.gps = None