Skip to content

Commit

Permalink
Fixing power entry (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgee authored Nov 26, 2019
1 parent bfe3315 commit de2a3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peas/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit de2a3fd

Please sign in to comment.