From 467203b090826448fc22c1e001adc8691fae1403 Mon Sep 17 00:00:00 2001 From: qJake Date: Wed, 15 Apr 2020 19:45:01 -0500 Subject: [PATCH 1/3] Update Material Icons to 5.0.45 --- HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml | 4 ++-- HADotNet.CommandCenter/Views/Shared/_Layout.cshtml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml b/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml index e4a762f..1ea96a6 100644 --- a/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml +++ b/HADotNet.CommandCenter/Views/Shared/_AdminLayout.cshtml @@ -7,12 +7,12 @@ - + - + diff --git a/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml b/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml index 8dd6879..0878455 100644 --- a/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml +++ b/HADotNet.CommandCenter/Views/Shared/_Layout.cshtml @@ -6,11 +6,11 @@ @ViewData["Title"] - HA Command Center - + - + From ac49d3b539e4f44b92df8bbbe7d869b213310ddb Mon Sep 17 00:00:00 2001 From: qJake Date: Wed, 15 Apr 2020 19:45:29 -0500 Subject: [PATCH 2/3] Fix #94 service call bug --- HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs b/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs index 747f8b9..5aa3f1b 100644 --- a/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs +++ b/HADotNet.CommandCenter/Models/Config/Tiles/SwitchTile.cs @@ -45,6 +45,12 @@ public class SwitchTile : BaseEntityTile /// Switches are weird... some of them don't like the homeassistant.toggle service. So we do our own logic. public override async Task OnClick(ServiceClient serviceClient) { + var serviceDomain = EntityId.Split('.')[0].ToLower(); + if (serviceDomain.ToUpper() == "GROUP") + { + serviceDomain = "homeassistant"; + } + var stateClient = ClientFactory.GetClient(); var state = await stateClient.GetState(EntityId); var serviceName = @@ -54,7 +60,8 @@ public override async Task OnClick(ServiceClient serviceClient) || state.State.ToUpper() == "STANDBY" || state.State.ToUpper() == "IDLE" ? "turn_on" : "turn_off"; - await serviceClient.CallService(EntityId.Split('.')[0].ToLower(), serviceName, new { entity_id = EntityId }); + + await serviceClient.CallService(serviceDomain, serviceName, new { entity_id = EntityId }); } } } From 5c56bbf208dbc8b4c78971faeff6b522010ac92d Mon Sep 17 00:00:00 2001 From: qJake Date: Wed, 15 Apr 2020 19:45:54 -0500 Subject: [PATCH 3/3] Bump version --- Docker/BuildHaccContainers.ps1 | 2 +- HADotNet.CommandCenter/HADotNet.CommandCenter.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Docker/BuildHaccContainers.ps1 b/Docker/BuildHaccContainers.ps1 index 2f26dc7..2ee2492 100644 --- a/Docker/BuildHaccContainers.ps1 +++ b/Docker/BuildHaccContainers.ps1 @@ -1,4 +1,4 @@ -$version = '1.0.18' +$version = '1.0.19' function Test-ExitCode ([int] $Expected = 0) { diff --git a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj index c887e32..ddb72ed 100644 --- a/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj +++ b/HADotNet.CommandCenter/HADotNet.CommandCenter.csproj @@ -5,8 +5,8 @@ win10;alpine.3.10-x64;debian.10-arm Latest Linux - 1.0.18.0 - 1.0.18.0 + 1.0.19.0 + 1.0.19.0 false false false