Skip to content

Commit

Permalink
fix UP015
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bonnes committed Sep 10, 2024
1 parent 1cab0a7 commit 2301b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evohomeasync2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async def set_schedules(
evo: EvohomeClient = ctx.obj[SZ_EVO]

# will TypeError if filename is sys.stdin
async with aiofiles.open(filename, "r") as fp: # type: ignore[call-overload]
async with aiofiles.open(filename) as fp: # type: ignore[call-overload]
content = await fp.read()

success = await _get_tcs(evo, loc_idx).set_schedules(json.loads(content))
Expand Down

0 comments on commit 2301b35

Please sign in to comment.