From 4a667eb77e28a27dc766ca6f7bbd04e3866124d9 Mon Sep 17 00:00:00 2001 From: amorsillo Date: Sat, 21 May 2016 16:01:43 -0400 Subject: [PATCH] =?UTF-8?q?Display=20controls=20for=20all=20members=20of?= =?UTF-8?q?=20group=20if=20all=20members=20are=20of=20the=20s=E2=80=A6=20(?= =?UTF-8?q?#61)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Display controls for all members of group if all members are of the same domain. * Clean up for eslint * Pick the most capable member of a group as a basis for whole group controls * Create a new state with only necessary attribute changes for group control * Always use first member of group for base entity of group controls --- src/cards/ha-entities-card.html | 5 +++- src/cards/ha-entities-card.js | 19 +++++++++++--- src/more-infos/more-info-group.html | 2 ++ src/more-infos/more-info-group.js | 40 ++++++++++++++++++++++++++++- 4 files changed, 61 insertions(+), 5 deletions(-) diff --git a/src/cards/ha-entities-card.html b/src/cards/ha-entities-card.html index ce55d0bf85..7db7f1d806 100644 --- a/src/cards/ha-entities-card.html +++ b/src/cards/ha-entities-card.html @@ -29,10 +29,13 @@ ha-entity-toggle { margin-left: 16px; } + .header-more-info { + cursor: pointer; + }