mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Remove unreachable code in ESPHome media_players (#143203)
This commit is contained in:
parent
60293648dc
commit
b487c12ab1
@ -194,6 +194,7 @@ class EsphomeEntity(Entity, Generic[_InfoT, _StateT]):
|
|||||||
_static_info: _InfoT
|
_static_info: _InfoT
|
||||||
_state: _StateT
|
_state: _StateT
|
||||||
_has_state: bool
|
_has_state: bool
|
||||||
|
device_entry: dr.DeviceEntry
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
@ -148,10 +148,6 @@ class EsphomeMediaPlayer(
|
|||||||
announcement: bool,
|
announcement: bool,
|
||||||
) -> str | None:
|
) -> str | None:
|
||||||
"""Get URL for ffmpeg proxy."""
|
"""Get URL for ffmpeg proxy."""
|
||||||
if self.device_entry is None:
|
|
||||||
# Device id is required
|
|
||||||
return None
|
|
||||||
|
|
||||||
# Choose the first default or announcement supported format
|
# Choose the first default or announcement supported format
|
||||||
format_to_use: MediaPlayerSupportedFormat | None = None
|
format_to_use: MediaPlayerSupportedFormat | None = None
|
||||||
for supported_format in supported_formats:
|
for supported_format in supported_formats:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user