mirror of
https://github.com/home-assistant/core.git
synced 2025-04-19 14:57:52 +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
|
||||
_state: _StateT
|
||||
_has_state: bool
|
||||
device_entry: dr.DeviceEntry
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -148,10 +148,6 @@ class EsphomeMediaPlayer(
|
||||
announcement: bool,
|
||||
) -> str | None:
|
||||
"""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
|
||||
format_to_use: MediaPlayerSupportedFormat | None = None
|
||||
for supported_format in supported_formats:
|
||||
|
Loading…
x
Reference in New Issue
Block a user