Skip to content

Commit 2190b53

Browse files
committed
Improve comments
1 parent 03892f0 commit 2190b53

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

plugwise/helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch
265265

266266
def _collect_dhw_modes(self, appliance: etree.Element) -> None:
267267
"""Collect the DHW modes."""
268-
# Collect the Loria dhw_modes
268+
# Collect the Loria dhw modes
269269
self._dhw_allowed_modes = self._get_appl_actuator_modes(
270270
appliance, "domestic_hot_water_mode_control_functionality"
271271
)
272-
# Collect the default dhw modes: comfort and off
272+
# Determine the dhw modes from the domestic_hot_water_comfort_mode toggle
273273
if not self._dhw_allowed_modes:
274274
self._get_toggle_state(
275275
appliance, "domestic_hot_water_comfort_mode", "dhw_cm_switch", {}

plugwise/smile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,15 @@ async def set_select(
244244
match key:
245245
case "select_dhw_mode" | "dhw_mode":
246246
state = STATE_ON if option == "comfort" else STATE_OFF
247-
# loc_id = appliance_id
247+
# Appliance id is passed as loc_id
248248
await self.set_switch_state(loc_id, None, key, state)
249249
case "select_gateway_mode":
250250
await self.set_gateway_mode(option)
251251
case "select_regulation_mode":
252252
await self.set_regulation_mode(option)
253253
case "select_schedule":
254-
# schedule name corresponds to select option
254+
# The schedule name corresponds to the select option
255+
# Location id is passed as loc_id
255256
await self.set_schedule_state(loc_id, state, option)
256257
case "select_zone_profile":
257258
await self.set_zone_profile(loc_id, option)

0 commit comments

Comments
 (0)