From 50c397901bca0bcae14772d21a51a8b5ea92c8b8 Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Mon, 20 Dec 2021 10:26:02 +0100 Subject: [PATCH] Show correct cursor if `tap_action` is set to "none" (#10963) --- src/panels/lovelace/components/hui-generic-entity-row.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/components/hui-generic-entity-row.ts b/src/panels/lovelace/components/hui-generic-entity-row.ts index 5f185bf46e..7a295a56a6 100644 --- a/src/panels/lovelace/components/hui-generic-entity-row.ts +++ b/src/panels/lovelace/components/hui-generic-entity-row.ts @@ -50,8 +50,11 @@ class HuiGenericEntityRow extends LitElement { } const domain = computeDomain(this.config.entity); + // By default, we always show a pointer, since if there is no explicit configuration provided, + // the frontend always assumes "more-info" in the action handler. We only need to hide the pointer + // if the tap action is explicitly set to "none". const pointer = !( - this.config.tap_action && this.config.tap_action.action !== "none" + this.config.tap_action && this.config.tap_action.action === "none" ); const hasSecondary = this.secondaryText || this.config.secondary_info;