Skip to content

Commit

Permalink
Default the temeprature format to c
Browse files Browse the repository at this point in the history
  • Loading branch information
wrouesnel committed Nov 29, 2024
1 parent e0d8ec8 commit 1b4f327
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyuhoo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ def __init__(
self._websession: ClientSession = websession
self._token: Optional[str] = None
self._refresh_token: Optional[str] = None
# self.user_settings_temp: str = "f" # "f" or "c"
# This *seems* to be defaulted to 'c' now.
self.user_settings_temp: str = "c" # "f" or "c"

self._api: API = API(self._websession)

Expand Down Expand Up @@ -110,7 +111,7 @@ async def get_latest_data(self) -> None:

#self._log.debug(f"[data_latest] returned\n{json_pp(data_latest)}")

# self.user_settings_temp = data_latest["userSettings"]["temp"]
self.user_settings_temp = data_latest["userSettings"]["temp"]

device: dict
for device in data_latest["devices"]:
Expand Down

0 comments on commit 1b4f327

Please sign in to comment.