diff --git a/peas/sensors.py b/peas/sensors.py index 3a759a5c5..2c349cbb8 100644 --- a/peas/sensors.py +++ b/peas/sensors.py @@ -143,7 +143,7 @@ def capture(self, store_result=True, send_message=True): self.db.insert_current(sensor_name, data) # Make a separate power entry - if 'power' in sensor_data: + if 'power' in data: self.db.insert_current('power', data['power']) except Exception as e: