Skip to content

Commit 9b424bf

Browse files
committed
Small code improvement
1 parent 94292e2 commit 9b424bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugwise/smile.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,8 @@ async def set_switch_state(self, appl_id, members, model, state):
414414
# Don't bother switching a relay when the corresponding lock-state is true
415415
if lock_state == "true":
416416
return False
417-
else:
418-
await self.request(uri, method="put", data=data)
419-
return True
417+
await self.request(uri, method="put", data=data)
418+
return True
420419

421420
await self.request(uri, method="put", data=data)
422421
return True

0 commit comments

Comments
 (0)