mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +00:00
Typing functions
This commit is contained in:
parent
0964130782
commit
1cc3936ec3
@ -261,13 +261,13 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
return secondaryTitle;
|
return secondaryTitle;
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleMoreInfo() {
|
private _handleMoreInfo(): void {
|
||||||
fireEvent(this, "hass-more-info", {
|
fireEvent(this, "hass-more-info", {
|
||||||
entityId: this._config!.entity,
|
entityId: this._config!.entity,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _handleClick(e: MouseEvent) {
|
private _handleClick(e: MouseEvent): void {
|
||||||
this.hass!.callService("media_player", (e.currentTarget! as any).action, {
|
this.hass!.callService("media_player", (e.currentTarget! as any).action, {
|
||||||
entity_id: this._config!.entity,
|
entity_id: this._config!.entity,
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user