Skip to content

Commit

Permalink
Merge pull request #88 from awgrover/unsubscribe-group-key-87
Browse files Browse the repository at this point in the history
adafruit_io#unsubscribe(group_key=xxx) should unsubscribe thegroup ke…
  • Loading branch information
FoamyGuy committed Apr 11, 2022
2 parents c411841 + fe691a8 commit 20e4884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_io/adafruit_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def unsubscribe(self, feed_key=None, group_key=None, shared_user=None):
self._client.unsubscribe("{0}/f/{1}".format(shared_user, feed_key))
elif group_key is not None:
validate_feed_key(group_key)
self._client.unsubscribe("{0}/g/{1}".format(self._user, feed_key))
self._client.unsubscribe("{0}/g/{1}".format(self._user, group_key))
elif feed_key is not None:
validate_feed_key(feed_key)
self._client.unsubscribe("{0}/f/{1}".format(self._user, feed_key))
Expand Down

0 comments on commit 20e4884

Please sign in to comment.