From c3896a4613524602ba31d4c0da08b6ee1d384cc7 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 29 Oct 2019 12:37:25 +0100 Subject: [PATCH 1/2] Only do haptic on entity interactions --- src/panels/lovelace/common/handle-click.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/common/handle-click.ts b/src/panels/lovelace/common/handle-click.ts index 27b6d28c14..351ea4b9ca 100644 --- a/src/panels/lovelace/common/handle-click.ts +++ b/src/panels/lovelace/common/handle-click.ts @@ -72,6 +72,7 @@ export const handleClick = ( case "toggle": if (config.entity) { toggleEntity(hass, config.entity!); + forwardHaptic("light"); } break; case "call-service": { @@ -81,7 +82,7 @@ export const handleClick = ( } const [domain, service] = actionConfig.service.split(".", 2); hass.callService(domain, service, actionConfig.service_data); + forwardHaptic("light"); } } - forwardHaptic("light"); }; From 2a6b877cf1626b4d5ac49969ddb839fe1c5b7cbb Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Tue, 29 Oct 2019 12:58:20 +0100 Subject: [PATCH 2/2] Bumped version to 20191025.1 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index a336a033f1..4d40b9e8c5 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name="home-assistant-frontend", - version="20191025.0", + version="20191025.1", description="The Home Assistant frontend", url="https://github.com/home-assistant/home-assistant-polymer", author="The Home Assistant Authors",