Skip to content

Commit 6687cb6

Browse files
committed
Model, not name
1 parent e6ca1c5 commit 6687cb6

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
@@ -1207,12 +1207,12 @@ def __get_temperature_uri(self, loc_id):
12071207

12081208
return f"{LOCATIONS};id={loc_id}/thermostat;id={thermostat_functionality_id}"
12091209

1210-
async def set_switch_state(self, appl_id, members, name, state):
1210+
async def set_switch_state(self, appl_id, members, model, state):
12111211
"""Switch the Switch off/on."""
12121212
actuator = "actuator_functionalities"
12131213
func_type = "relay_functionality"
12141214
device = "relay"
1215-
if name == "dhw_cm_switch":
1215+
if model == "dhw_cm_switch":
12161216
func_type = "toggle_functionality"
12171217
device = "toggle"
12181218
stretch_v2 = self.smile_type == "stretch" and self.smile_version[1].major == 2

0 commit comments

Comments
 (0)