Skip to content

Commit

Permalink
Version 4.2.4, fix assignment of self.sources
Browse files Browse the repository at this point in the history
  • Loading branch information
autinerd committed Feb 15, 2024
1 parent 784ce0e commit b3fb304
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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.3"
__version__ = "4.2.4"
7 changes: 4 additions & 3 deletions openwebif/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class OpenWebIfDevice:
turn_off_to_deep: bool
picon_url: str | None = None
source_bouquet: str | None = None
mac_address: str | None = None
mac_address: str
sources: dict[str, Any]
source_list: list[str]

Expand Down Expand Up @@ -130,6 +130,7 @@ def __init__(
self.turn_off_to_deep = turn_off_to_deep
self.source_bouquet = source_bouquet
self.status = OpenWebIfStatus(currservice=OpenWebIfServiceEvent())
self.sources = {}

async def close(self) -> None:
"""Close the connection."""
Expand Down Expand Up @@ -480,11 +481,11 @@ async def get_bouquet_sources(self, bouquet: str | None = None) -> dict[str, Any
_LOGGER.warning("No sources could be loaded from specified bouquet.")
return sources

async def get_all_services(self) -> dict[str, Any] | None:
async def get_all_services(self) -> dict[str, Any]:
"""Get list of all services."""
return await self._call_api(PATH_GETALLSERVICES)

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

Expand Down

0 comments on commit b3fb304

Please sign in to comment.