mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Removed unneessary casting
This commit is contained in:
parent
20793ecdba
commit
8f679d12ff
@ -54,7 +54,7 @@ class HaPanelDevTemplate extends LitElement {
|
|||||||
|
|
||||||
private _context_data = "";
|
private _context_data = "";
|
||||||
|
|
||||||
private _context_variables?: Record<string, any>;
|
private _context_variables?;
|
||||||
|
|
||||||
private _inited = false;
|
private _inited = false;
|
||||||
|
|
||||||
@ -346,10 +346,7 @@ class HaPanelDevTemplate extends LitElement {
|
|||||||
await this._unsubscribeTemplate();
|
await this._unsubscribeTemplate();
|
||||||
try {
|
try {
|
||||||
if (this._context_data && !this._context_variables) {
|
if (this._context_data && !this._context_variables) {
|
||||||
this._context_variables = load(this._context_data) as Record<
|
this._context_variables = load(this._context_data);
|
||||||
string,
|
|
||||||
any
|
|
||||||
>;
|
|
||||||
}
|
}
|
||||||
this._unsubRenderTemplate = subscribeRenderTemplate(
|
this._unsubRenderTemplate = subscribeRenderTemplate(
|
||||||
this.hass.connection,
|
this.hass.connection,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user