Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Dec 7, 2024
1 parent b7bf1b2 commit 1e9e3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uiprotect/data/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,6 @@ def dict_from_unifi_list(
) -> dict[str, ProtectModelWithId]:
return_dict: dict[str, ProtectModelWithId] = {}
for obj_dict in unifi_list:
obj = create_from_unifi_dict(obj_dict, api)
return_dict[cast(ProtectModelWithId, obj).id] = obj
obj = cast(ProtectModelWithId, create_from_unifi_dict(obj_dict, api))
return_dict[obj.id] = obj
return return_dict

0 comments on commit 1e9e3a7

Please sign in to comment.