Skip to content

Commit d308889

Browse files
committed
Fix PLR0917 errors
1 parent d86c19b commit d308889

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

plugwise/smilecomm.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __init__(
3434
password: str,
3535
port: int,
3636
timeout: int,
37+
*,
3738
username: str,
3839
websession: ClientSession | None,
3940
) -> None:

tests/test_init.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ async def connect(
283283
broken=False,
284284
fail_auth=False,
285285
raise_timeout=False,
286+
*,
286287
smile_timeout_value=10,
287288
stretch=False,
288289
timeout_happened=False,
@@ -728,7 +729,7 @@ async def tinker_thermostat_preset(self, api, loc_id, unhappy=False):
728729

729730
@pytest.mark.asyncio
730731
async def tinker_thermostat_schedule(
731-
self, api, loc_id, state, good_schedules=None, single=False, unhappy=False
732+
self, api, loc_id, state, *, good_schedules=None, single=False, unhappy=False
732733
):
733734
"""Toggle schedules to test functionality."""
734735
# pragma warning disable S3776
@@ -798,6 +799,7 @@ async def tinker_thermostat(
798799
self,
799800
api,
800801
loc_id,
802+
*,
801803
schedule_on=True,
802804
good_schedules=None,
803805
single=False,

0 commit comments

Comments
 (0)