Skip to content

Commit

Permalink
feat: split wohub2 sensor temperature entity
Browse files Browse the repository at this point in the history
  • Loading branch information
huyuwei1996 committed Jan 22, 2025
1 parent be2a418 commit f616643
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions switchbot/adv_parsers/hub2.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def process_wohub2(data: bytes | None, mfr_data: bytes | None) -> dict[str, Any]
# Data should be flat, but we keep the original structure for now
"temp": {"c": _temp_c, "f": _temp_f},
"temperature": _temp_c,
"sensor_temperature": _temp_c,
"fahrenheit": bool(temp_data[2] & 0b10000000),
"humidity": humidity,
"lightLevel": light_level,
Expand Down

0 comments on commit f616643

Please sign in to comment.