Skip to content

Commit bec4deb

Browse files
committed
Add missing loc_id arg
1 parent 48784bb commit bec4deb

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
@@ -242,7 +242,7 @@ async def set_select(
242242
# schedule name corresponds to select option
243243
await self.set_schedule_state(loc_id, state, option)
244244
case "select_zone_profile":
245-
await self.set_zone_profile(option)
245+
await self.set_zone_profile(loc_id, option)
246246

247247
async def set_dhw_mode(self, mode: str) -> None:
248248
"""Set the domestic hot water heating regulation mode."""
@@ -307,7 +307,7 @@ async def set_regulation_mode(self, mode: str) -> None:
307307
uri = f"{APPLIANCES};type=gateway/regulation_mode_control"
308308
await self.call_request(uri, method="put", data=data)
309309

310-
async def set_zone_profile(self, profile: str) -> None:
310+
async def set_zone_profile(self, loc_id: str, profile: str) -> None:
311311
"""Set the Adam thermoszone heating profile."""
312312
if profile not in ALLOWED_ZONE_PROFILES:
313313
raise PlugwiseError("Plugwise: invalid zone profile.")

0 commit comments

Comments
 (0)