Improve media_player type hints in integrations (#90029)
Fix some media_player type hints
This commit is contained in:
parent
04872f72ea
commit
4836404288
26 changed files with 62 additions and 32 deletions
|
@ -479,7 +479,9 @@ class PlexMediaPlayer(MediaPlayerEntity):
|
|||
if self.device and "playback" in self._device_protocol_capabilities:
|
||||
self.device.skipPrevious(self._active_media_plexapi_type)
|
||||
|
||||
def play_media(self, media_type: str, media_id: str, **kwargs: Any) -> None:
|
||||
def play_media(
|
||||
self, media_type: MediaType | str, media_id: str, **kwargs: Any
|
||||
) -> None:
|
||||
"""Play a piece of media."""
|
||||
if not (self.device and "playback" in self._device_protocol_capabilities):
|
||||
raise HomeAssistantError(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue