Skip to content

Commit

Permalink
Quote comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
djjudas21 committed Jan 9, 2024
1 parent cb3c60f commit 15b4958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecowitt_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def logecowitt():
# Check PM25 data from the WH41 sensor
# If the battery is low it gives junk readings
# https://github.com/djjudas21/ecowitt-exporter/issues/17
if data.get('pm25batt1') == 1 and data.get('pm25_ch1') == 1000:
if data.get('pm25batt1') == '1' and data.get('pm25_ch1') == '1000':
# Drop erroneous reading
del data['pm25_ch1']

Expand Down

0 comments on commit 15b4958

Please sign in to comment.