diff --git a/homeassistant/components/device_tracker/__init__.py b/homeassistant/components/device_tracker/__init__.py index 7c4c74708db042e22e1c3b86e22da42a24b02de6..d497ea4c3148d736506ead0a1d1b10ffe2ae6911 100644 --- a/homeassistant/components/device_tracker/__init__.py +++ b/homeassistant/components/device_tracker/__init__.py @@ -421,7 +421,8 @@ class Device(Entity): self.host_name = host_name self.location_name = location_name self.gps_accuracy = gps_accuracy or 0 - + if battery: + self.battery = battery if attributes: self._attributes.update(attributes)