Skip to content

Commit 91beb35

Browse files
committed
Force string
1 parent 7087529 commit 91beb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def determine_contexts(
370370
if state == "on":
371371
contexts.append(subject)
372372

373-
return etree.tostring(contexts, encoding="unicode").rstrip()
373+
return str(etree.tostring(contexts, encoding="unicode").rstrip())
374374

375375
async def set_switch_state(
376376
self, appl_id: str, members: list[str] | None, model: str, state: str

0 commit comments

Comments
 (0)