Skip to content

Commit 610d5e5

Browse files
committed
More clean up
1 parent bfaed14 commit 610d5e5

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

plugwise/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ async def set_temperature_offset(self, dev_id: str, offset: float) -> None:
409409
) from exc # pragma no cover
410410

411411
async def set_switch_state(
412-
self, appl_id: str, members: list[str] | None, model: str, state: str
412+
self, appl_id: str, model: str, state: str
413413
) -> bool:
414414
"""Set the given State of the relevant Switch.
415415
@@ -423,7 +423,7 @@ async def set_switch_state(
423423

424424
try:
425425
return await self._smile_api.set_switch_state(
426-
appl_id, members, model, state
426+
appl_id, model, state
427427
)
428428
except ConnectionFailedError as exc:
429429
raise ConnectionFailedError(

plugwise/legacy/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def set_schedule_state(
216216
await self.call_request(uri, method="put", data=data)
217217

218218
async def set_switch_state(
219-
self, appl_id: str, members: list[str] | None, model: str, state: str
219+
self, appl_id: str, model: str, state: str
220220
) -> bool:
221221
"""Set the given state of the relevant switch.
222222

plugwise/smile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def determine_contexts(self, loc_id: str, state: str, sched_id: str) -> str:
394394
return str(etree.tostring(contexts, encoding="unicode").rstrip())
395395

396396
async def set_switch_state(
397-
self, appl_id: str, members: list[str] | None, model: str, state: str
397+
self, appl_id: str, model: str, state: str
398398
) -> bool:
399399
"""Set the given state of the relevant Switch.
400400

tests/test_init.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ async def tinker_reboot(self, api, unhappy=False):
622622

623623
@pytest.mark.asyncio
624624
async def tinker_switch(
625-
self, api, dev_id=None, members=None, model="relay", unhappy=False
625+
self, api, dev_id=None, model="relay", unhappy=False
626626
):
627627
"""Turn a Switch on and off to test functionality."""
628628
_LOGGER.info("Asserting modifying settings for switch devices:")
@@ -632,7 +632,7 @@ async def tinker_switch(
632632
for new_state in ["off", "on", "off"]:
633633
_LOGGER.info("- Switching %s", new_state)
634634
try:
635-
result = await api.set_switch_state(dev_id, members, model, new_state)
635+
result = await api.set_switch_state(dev_id, model, new_state)
636636
if result == convert[new_state]:
637637
tinker_switch_passed = True
638638
_LOGGER.info(" + tinker_switch worked as intended")
@@ -653,14 +653,14 @@ async def tinker_switch(
653653

654654
@pytest.mark.asyncio
655655
async def tinker_switch_bad_input(
656-
self, api, dev_id=None, members=None, model="relay", unhappy=False
656+
self, api, dev_id=None, model="relay", unhappy=False
657657
):
658658
"""Enter a wrong state as input to toggle a Switch."""
659659
_LOGGER.info("Test entering bad input set_switch_state:")
660660
_LOGGER.info("- Devices (%s):", dev_id)
661661
new_state = "false"
662662
try:
663-
await api.set_switch_state(dev_id, members, model, new_state)
663+
await api.set_switch_state(dev_id, model, new_state)
664664
except pw_exceptions.PlugwiseError:
665665
_LOGGER.info(" + failed input-check as expected")
666666
return True # test is pass!

0 commit comments

Comments
 (0)