Skip to content

Commit cc8aa5e

Browse files
committed
Init switch_id
1 parent c885f95 commit cc8aa5e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

plugwise/smile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ async def set_switch_state(
460460

461461
locator = f'appliance[@id="{appl_id}"]/{switch.actuator}/{switch.func_type}'
462462
found = self._domain_objects.findall(locator)
463+
switch_id: str | None = None
463464
for item in found:
464465
# multiple types of e.g. toggle_functionality present
465466
if (sw_type := item.find("type")) is not None:

0 commit comments

Comments
 (0)