Remove dependency on lit-transition until resolution of: https://github.com/sijakret/lit-transition/issues/64
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
"home-assistant-js-websocket": "^5.11.1",
|
"home-assistant-js-websocket": "^5.11.1",
|
||||||
"lit-element": "^2.5.1",
|
"lit-element": "^2.5.1",
|
||||||
"lit-html": "^1.4.1",
|
"lit-html": "^1.4.1",
|
||||||
"lit-transition": "^1.3.2",
|
|
||||||
"zod": "^3.7.1"
|
"zod": "^3.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
+4
-6
@@ -16,7 +16,7 @@ import {
|
|||||||
|
|
||||||
import { NodePart } from "lit-html";
|
import { NodePart } from "lit-html";
|
||||||
import { until } from 'lit-html/directives/until.js';
|
import { until } from 'lit-html/directives/until.js';
|
||||||
import { transition } from 'lit-transition';
|
|
||||||
import {
|
import {
|
||||||
HomeAssistant,
|
HomeAssistant,
|
||||||
fireEvent,
|
fireEvent,
|
||||||
@@ -134,11 +134,10 @@ export class FrigateCardMenu extends LitElement {
|
|||||||
// Render the menu.
|
// Render the menu.
|
||||||
protected render(): TemplateResult | void | ((part: NodePart) => Promise<void>) {
|
protected render(): TemplateResult | void | ((part: NodePart) => Promise<void>) {
|
||||||
if (!this.expand) {
|
if (!this.expand) {
|
||||||
return transition(
|
return html`
|
||||||
html`
|
|
||||||
<div class="frigate-card-menu">
|
<div class="frigate-card-menu">
|
||||||
${this._renderFrigateButton()}
|
${this._renderFrigateButton()}
|
||||||
</div>`);
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
let motionIcon: string | null = null;
|
let motionIcon: string | null = null;
|
||||||
@@ -146,8 +145,7 @@ export class FrigateCardMenu extends LitElement {
|
|||||||
motionIcon = this.hass.states[this.motionEntity]?.state == "on" ? "mdi:motion-sensor" : "mdi:walk";
|
motionIcon = this.hass.states[this.motionEntity]?.state == "on" ? "mdi:motion-sensor" : "mdi:walk";
|
||||||
}
|
}
|
||||||
|
|
||||||
return transition(
|
return html`
|
||||||
html`
|
|
||||||
<div class="frigate-card-menu-container">
|
<div class="frigate-card-menu-container">
|
||||||
<div
|
<div
|
||||||
class="frigate-card-menu-expanded"
|
class="frigate-card-menu-expanded"
|
||||||
|
|||||||
Reference in New Issue
Block a user