Skip to content

Commit

Permalink
drop more-info feature
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed Dec 27, 2023
1 parent 68baaff commit 964a424
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/panels/lovelace/cards/hui-area-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { customElement, property, state } from "lit/decorators";
import { classMap } from "lit/directives/class-map";
import { styleMap } from "lit/directives/style-map";
import memoizeOne from "memoize-one";
import { fireEvent } from "../../../common/dom/fire_event";
import { STATES_OFF } from "../../../common/const";
import { applyThemesOnElement } from "../../../common/dom/apply_themes_on_element";
import { computeDomain } from "../../../common/entity/compute_domain";
Expand Down Expand Up @@ -446,10 +445,8 @@ export class HuiAreaCard
return entity
? html`<ha-svg-icon
class="alert"
id=${entity.entity_id}
.path=${DOMAIN_ICONS[domain][deviceClass] ||
binarySensorIcon(entity.state, entity)}
@click=${this._moreInfo}
></ha-svg-icon>`
: nothing;
});
Expand Down Expand Up @@ -506,13 +503,6 @@ export class HuiAreaCard
}
}

private _moreInfo(ev) {
ev.stopPropagation();
fireEvent(this, "hass-more-info", {
entityId: ev.target.id,
});
}

private _handleNavigation() {
if (this._config!.navigation_path) {
navigate(this._config!.navigation_path);
Expand Down Expand Up @@ -587,10 +577,6 @@ export class HuiAreaCard
border-radius: 50%;
}
ha-svg-icon.alert {
cursor: pointer;
}
.name {
color: white;
font-size: 24px;
Expand Down

0 comments on commit 964a424

Please sign in to comment.