Skip to content

Commit 932ddbd

Browse files
committed
Force string
1 parent c1d08dd commit 932ddbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)