Skip to content

Commit 2388642

Browse files
committed
Pass missed output
1 parent 2fdb52a commit 2388642

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -617,8 +617,7 @@ def determine_contexts(self, loc_id: str, state: str, sched_id: str) -> etree:
617617
if state == "on":
618618
contexts.append(subject)
619619

620-
contexts = etree.tostring(contexts, encoding="unicode").rstrip()
621-
return contexts
620+
return etree.tostring(contexts, encoding="unicode").rstrip()
622621

623622
async def set_schedule_state(
624623
self,
@@ -665,7 +664,7 @@ async def set_schedule_state(
665664
template_id = self._domain_objects.find(locator).attrib["id"]
666665
template = f'<template id="{template_id}" />'
667666

668-
self.determine_contexts(loc_id, new_state, schedule_rule_id)
667+
contexts = self.determine_contexts(loc_id, new_state, schedule_rule_id)
669668
uri = f"{RULES};id={schedule_rule_id}"
670669
data = (
671670
f'<rules><rule id="{schedule_rule_id}"><name><![CDATA[{name}]]></name>'

0 commit comments

Comments
 (0)