Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all bouquets does not return radio bouquets #3

Open
iliessens opened this issue Nov 23, 2024 · 0 comments
Open

Get all bouquets does not return radio bouquets #3

iliessens opened this issue Nov 23, 2024 · 0 comments

Comments

@iliessens
Copy link

Hi!

I really like the integration and have been using it a lot.

I have a receiver I use for listening to radio stations, but those bouquets are not showed in the Home Assistant config flow.
(I used to have the bouquet specified in YAML, but this seems no longer possible.)

This seems to trace back to the function "get all bouquets", which in fact only returns TV bouquets.

async def get_all_bouquets(self) -> dict[str, Any]:
"""Get list of all bouquets."""
return await self._call_api(PATH_BOUQUETS)

This in turn calls the OpenWebIf API, that by default returns TV bouquets. There seems to be no option to get both radio and TV channels in one call.
https://github.com/E2OpenPlugins/e2openplugin-OpenWebif/wiki/OpenWebif-API-documentation#bouquets

So maybe the best solution is to make two calls and merge the results?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant