andrewsayre / pyheos

An async python library for controlling HEOS devices through the HEOS CLI Protocol
Apache License 2.0
17 stars 12 forks source link

Question on create_group() #7

Closed Spyop3 closed 5 years ago

Spyop3 commented 5 years ago

Hello Andrew

I'm using your lib to develop a gnome-extension for controlling my heos

And thanks a lot cause pretty quick I got play/stop working :)

I cannot understand how to use the command create_group() and particulary what is expected in data: dict ?

Can you provide me more explanation please

pyheos version : 0.4.0 Python version 3.7 Os: ubuntu

andrewsayre commented 5 years ago

create_group is only in the dev branch at this moment. I'm working on some other logic changes and then will release 0.5.0 which will have that later today (hopefully).

The signature is:

async def create_group(self, leader_id: int, member_ids: Sequence[int])

A good place to look for how to use the methods is in the tests. Everything is fully covered. Test for this particular method are here: https://github.com/andrewsayre/pyheos/blob/dev/tests/test_heos.py#L768-L774

andrewsayre commented 5 years ago

v0.5.0 has been released which includes the group manipulation APIs.