diff --git a/power.py b/power.py index dccde0c..d33a8e7 100644 --- a/power.py +++ b/power.py @@ -33,7 +33,7 @@ def monitor_ups(logger): client = PyNUTClient() try: ups_status = client.list_vars('ups') - return{ + return { ups_status.get('ups.status'), 'battery_charge': float(ups_status.get('battery.charge')) }