Skip to content

Commit

Permalink
fix: refactoring error in 83 (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Jun 17, 2024
1 parent 113d579 commit ed477c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/uiprotect/data/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ class SmartDetectSettings(ProtectBaseObject):

@classmethod
def unifi_dict_to_dict(cls, data: dict[str, Any]) -> dict[str, Any]:
for key in ("objectTypes", "audioTypes", "autoTrackingObjectTypes"):
if "audioTypes" in data:
data["audioTypes"] = convert_smart_audio_types(data["audioTypes"])
for key in ("objectTypes", "autoTrackingObjectTypes"):
if key in data:
data[key] = convert_smart_types(data[key])

Expand Down

0 comments on commit ed477c2

Please sign in to comment.