Skip to content

Commit be532bf

Browse files
committed
Remove double occurrence of self._request()
1 parent 06eb5bd commit be532bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

plugwise/smile.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,8 +607,6 @@ async def set_switch_state(self, appl_id, members, model, state):
607607
# Don't bother switching a relay when the corresponding lock-state is true
608608
if lock_state == "true":
609609
return False
610-
await self._request(uri, method="put", data=data)
611-
return True
612610

613611
await self._request(uri, method="put", data=data)
614612
return True

0 commit comments

Comments
 (0)