Skip to content

Commit cbbdeda

Browse files
committed
Set uri and call method
1 parent 6fe72a8 commit cbbdeda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,8 +316,8 @@ async def set_zone_profile(self, profile: str) -> None:
316316
f"<regulation_control>{profile}</regulation_control>"
317317
"</thermostat_functionality>"
318318
)
319-
uri = self._thermostat_uri(loc_id)
320-
await self.call_request(uri, method="put", data=data)
319+
uri = "{LOCATIONS};id={loc_id}/thermostat"
320+
await self.call_request(uri, method="post", data=data)
321321

322322
async def set_schedule_state(
323323
self,

0 commit comments

Comments
 (0)