From aa33f988d61d1605734cc9d5fcdfb39e36250e4d Mon Sep 17 00:00:00 2001 From: autinerd <27780930+autinerd@users.noreply.github.com> Date: Thu, 15 Aug 2024 18:35:21 +0200 Subject: [PATCH] Version 4.2.6; Catch when a bouquet has no services --- openwebif/__init__.py | 2 +- openwebif/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openwebif/__init__.py b/openwebif/__init__.py index 20275d4..3b0a7c9 100644 --- a/openwebif/__init__.py +++ b/openwebif/__init__.py @@ -1,3 +1,3 @@ """Top-level package for openwebif.""" -__version__ = "4.2.5" +__version__ = "4.2.6" diff --git a/openwebif/api.py b/openwebif/api.py index aaf8578..cef42f7 100644 --- a/openwebif/api.py +++ b/openwebif/api.py @@ -484,7 +484,7 @@ async def get_bouquet_sources(self, bouquet: str | None = None) -> dict[str, Any result = await self._call_api(PATH_EPGNOW, {"bRef": bRef}) if result: - sources = {src["sname"]: src["sref"] for src in result["events"]} + sources = {src["sname"]: src["sref"] for src in result["events"]} if len(result["events"]) > 0 else {} else: _LOGGER.warning("No sources could be loaded from specified bouquet.") return sources