Skip to content
Snippets Groups Projects
Commit 8afd30b7 authored by Daniel Høyer Iversen's avatar Daniel Høyer Iversen Committed by Paulus Schoutsen
Browse files

fix setting battery in device_tracker (#4756)

parent b60f5714
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment