Improve browse_media type hints in media player (#90060)

* Improve browse_media type hints in media player

* Adjust components

* Adjust base entity
This commit is contained in:
epenet 2023-03-25 05:49:12 +01:00 committed by GitHub
parent 5f3868b141
commit f56bf134d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 56 additions and 24 deletions

View file

@ -391,7 +391,9 @@ class PhilipsTVMediaPlayer(
)
async def async_browse_media(
self, media_content_type: str | None = None, media_content_id: str | None = None
self,
media_content_type: MediaType | str | None = None,
media_content_id: str | None = None,
) -> BrowseMedia:
"""Implement the websocket media browsing helper."""
if not self._tv.on: