From b2919c6504954739ef1fdb1eef843f0742703fbc Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Fri, 2 Oct 2015 13:49:55 -0700 Subject: [PATCH] Fix gps accuracy issue --- homeassistant/components/device_tracker/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/device_tracker/__init__.py b/homeassistant/components/device_tracker/__init__.py index c4f57601272..55359b393ec 100644 --- a/homeassistant/components/device_tracker/__init__.py +++ b/homeassistant/components/device_tracker/__init__.py @@ -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