Skip to content

Commit 8562e2d

Browse files
authored
Add bettery percentage
1 parent d749fca commit 8562e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnetatmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def lastData(self, station=None, exclude=0):
378378
lastD[module['module_name']] = ds.copy()
379379
lastD[module['module_name']]['When'] = lastD[module['module_name']].pop("time_utc") if 'time_utc' in lastD[module['module_name']] else time.time()
380380
# For potential use, add battery and radio coverage information to module data if present
381-
for i in ('battery_vp', 'rf_status') :
381+
for i in ('battery_vp', 'battery_percent', 'rf_status') :
382382
if i in module : lastD[module['module_name']][i] = module[i]
383383
return lastD
384384

0 commit comments

Comments
 (0)