Skip to content

Commit

Permalink
- replace update with assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kormax committed Oct 8, 2023
1 parent 1236d36 commit 2daa32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyhap/accessory_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ def set_characteristics(self, chars_query, client_addr):
updates_by_accessories_services[acc] = {}
if service not in updates_by_accessories_services[acc]:
updates_by_accessories_services[acc][service] = {}
updates_by_accessories_services[acc][service].update({char: value})
updates_by_accessories_services[acc][service][char] = value

# Proccess accessory and service level setter callbacks
for acc, updates_by_service in updates_by_accessories_services.items():
Expand Down

0 comments on commit 2daa32b

Please sign in to comment.