fix
This commit is contained in:
parent
e873832706
commit
f478806729
2
power.py
2
power.py
@ -34,7 +34,7 @@ def monitor_ups(logger):
|
|||||||
try:
|
try:
|
||||||
ups_status = client.list_vars('ups')
|
ups_status = client.list_vars('ups')
|
||||||
return {
|
return {
|
||||||
ups_status.get('ups.status'),
|
'status': ups_status.get('ups.status'),
|
||||||
'battery_charge': float(ups_status.get('battery.charge'))
|
'battery_charge': float(ups_status.get('battery.charge'))
|
||||||
}
|
}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user