Skip to content

Commit

Permalink
Merge pull request ikalchev#62 from cdce8p/patch-1
Browse files Browse the repository at this point in the history
should_notify=True in set_characteristics

Otherwise, other paired devices will not see the change.
  • Loading branch information
ikalchev committed Mar 25, 2018
2 parents 9b1d0fc + 8130e14 commit 260f951
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 @@ -440,7 +440,7 @@ def set_characteristics(self, chars_query, client_addr):
}
if "value" in cq:
# TODO: status needs to be based on success of set_value
char.set_value(cq["value"], should_notify=False)
char.set_value(cq["value"], should_notify=True)
if "r" in cq:
response["value"] = char.value

Expand Down

0 comments on commit 260f951

Please sign in to comment.