Created
March 8, 2021 20:13
-
-
Save jwcooper/8384d8158dd30560c77c8d55ac84f397 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group = aio.groups('group-key') | |
feeds = group.feeds | |
def get_feed(key): | |
return next((feed for feed in feeds if feed.key == key), None) | |
while True: | |
if machine == 1: | |
feed_one_ = get_feed('group-key.feed-one') | |
feed_one_.send_data(feed_one_.key, str(state)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment