Skip to content

Commit

Permalink
Fix: Wrong encoding of API response
Browse files Browse the repository at this point in the history
  • Loading branch information
a529987659852 committed Dec 13, 2023
1 parent fae3094 commit 97da66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/GuntamaticBiostar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ async def _async_get_data(self) -> dict[str, Any]:
dataDescription = await resp.text(encoding="windows-1252")
dataDescription = dataDescription.split("\n")[0:-1]
elif API == APIEndpoints[1]:
dataValues = await resp.text()
dataValues = await resp.text(encoding="windows-1252")
dataValues = dataValues.split("\n")[0:-1]

for i in range(len(dataDescription)):
Expand Down

0 comments on commit 97da66a

Please sign in to comment.