Skip to content

Commit 20e4884

Browse files
authored
Merge pull request #88 from awgrover/unsubscribe-group-key-87
adafruit_io#unsubscribe(group_key=xxx) should unsubscribe thegroup ke…
2 parents c411841 + fe691a8 commit 20e4884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_io/adafruit_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def unsubscribe(self, feed_key=None, group_key=None, shared_user=None):
351351
self._client.unsubscribe("{0}/f/{1}".format(shared_user, feed_key))
352352
elif group_key is not None:
353353
validate_feed_key(group_key)
354-
self._client.unsubscribe("{0}/g/{1}".format(self._user, feed_key))
354+
self._client.unsubscribe("{0}/g/{1}".format(self._user, group_key))
355355
elif feed_key is not None:
356356
validate_feed_key(feed_key)
357357
self._client.unsubscribe("{0}/f/{1}".format(self._user, feed_key))

0 commit comments

Comments
 (0)