mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Fix media player not rendering
This commit is contained in:
parent
b0d4c699db
commit
bf7fe5caf8
@ -526,7 +526,9 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private get _stateObj(): MediaPlayerEntity | undefined {
|
private get _stateObj(): MediaPlayerEntity | undefined {
|
||||||
return this.hass!.states[this._config!.entity] as MediaPlayerEntity;
|
return this._config
|
||||||
|
? (this.hass!.states[this._config.entity] as MediaPlayerEntity)
|
||||||
|
: undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleSeek(e: MouseEvent): void {
|
private _handleSeek(e: MouseEvent): void {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user