Skip to content

Commit

Permalink
Fix get_sensor_data return type
Browse files Browse the repository at this point in the history
  • Loading branch information
wurstbroteater committed Aug 27, 2024
1 parent b9f3f10 commit 5bf9fb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hometemp.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def get_sensor_data(used_pin):
# postgres expects timestamp ins ISO 8601 format
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
return result.temperature, result.humidity, timestamp


return None, None, None

def _get__visualization_data():
auth = config["db"]
Expand Down

0 comments on commit 5bf9fb5

Please sign in to comment.