Skip to content

Commit

Permalink
Fix JSON serialization bug introduced in 1.5.4 #71
Browse files Browse the repository at this point in the history
  • Loading branch information
erikkastelec committed May 10, 2023
1 parent 50e040c commit 6540941
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions custom_components/wemportal/wemportalapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ def change_value(
):
"""POST request to API to change a specific value"""
_LOGGER.debug("Changing value for %s", parameter_id)
# Encode into UTF-8
parameter_id = parameter_id.encode('utf-8')

data = {
"DeviceID": device_id,
"Modules": [
Expand Down

0 comments on commit 6540941

Please sign in to comment.