Skip to content

Commit

Permalink
Fix timestamp in Airlink device
Browse files Browse the repository at this point in the history
  • Loading branch information
astrandb committed Jan 16, 2024
1 parent 903feb8 commit bad93fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/weatherlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ def _preprocess(indata: str): # noqa: C901
outdata[tx_id][DataKey.DATA_STRUCTURE] = sensor[
"data_structure_type"
]
outdata[tx_id][DataKey.TIMESTAMP] = sensor["data"][0]["ts"]
outdata[tx_id][DataKey.TEMP] = sensor["data"][0]["temp"]
outdata[tx_id][DataKey.HUM] = sensor["data"][0]["hum"]
outdata[tx_id][DataKey.PM_1] = sensor["data"][0]["pm_1"]
Expand Down

0 comments on commit bad93fa

Please sign in to comment.