diff --git a/pydaikin/daikin_airbase.py b/pydaikin/daikin_airbase.py index 17dd503..c468386 100644 --- a/pydaikin/daikin_airbase.py +++ b/pydaikin/daikin_airbase.py @@ -242,6 +242,10 @@ async def set_zone(self, zone_id, key, value): params.update({"lztemp_c": self.values["lztemp_c"]}) params.update({"lztemp_h": self.values["lztemp_h"]}) + # Zone Name requires %20 encoding which is not handled well within yarl resulting + # in '%20' being encoded again to '%2520' + # For detailed info before changing the below refer to: https://github.com/fredrike/pydaikin/pull/11 + # # Convert params dictionary to query string format params_str = "&".join(f"{k}={v}" for k, v in params.items()) path = f"{path}?{params_str}" # Append params as query string to path