Skip to content

Commit

Permalink
Version 4.2.6; Catch when a bouquet has no services
Browse files Browse the repository at this point in the history
  • Loading branch information
autinerd committed Aug 15, 2024
1 parent ee686d1 commit aa33f98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openwebif/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Top-level package for openwebif."""

__version__ = "4.2.5"
__version__ = "4.2.6"
2 changes: 1 addition & 1 deletion openwebif/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa33f98

Please sign in to comment.