Fix bug in MediaSource definintion and enable strict type checking (#58321)
This commit is contained in:
parent
0aa06d22f1
commit
31aa168bbb
8 changed files with 55 additions and 38 deletions
|
@ -52,11 +52,7 @@ class NetatmoSource(MediaSource):
|
|||
url = self.events[camera_id][event_id]["media_url"]
|
||||
return PlayMedia(url, MIME_TYPE)
|
||||
|
||||
async def async_browse_media(
|
||||
self,
|
||||
item: MediaSourceItem,
|
||||
media_types: tuple[str] = ("video",),
|
||||
) -> BrowseMediaSource:
|
||||
async def async_browse_media(self, item: MediaSourceItem) -> BrowseMediaSource:
|
||||
"""Return media."""
|
||||
try:
|
||||
source, camera_id, event_id = async_parse_identifier(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue