Skip to content

Commit

Permalink
Update Nugets and fix Remote Hue Custom Color Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacrlevin committed May 23, 2024
1 parent 7e7f876 commit 23969bd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/DesktopClient/PresenceLight/PresenceLight.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="DesktopBridge.Helpers" Version="1.2.2" />
<PackageReference Include="Microsoft.ApplicationInsights.WorkerService" Version="2.22.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Wpf" Version="8.0.21" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebView.Wpf" Version="8.0.40" />
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.2" />
<PackageReference Update="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageReference Update="Nerdbank.GitVersioning" Version="3.6.133" />
Expand Down
8 changes: 4 additions & 4 deletions src/PresenceLight.Core/PresenceLight.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Graph" Version="5.51.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.60.3" />
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.60.3" />
<PackageReference Include="Microsoft.Graph" Version="5.53.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.1" />
<PackageReference Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.61.1" />
<PackageReference Include="OpenWiz" Version="1.1.0" />
<PackageReference Include="Polly" Version="8.3.1" />
<PackageReference Include="Polly" Version="8.4.0" />
<PackageReference Include="Q42.HueApi" Version="3.23.1" />
<PackageReference Include="Q42.HueApi.ColorConverters" Version="3.23.1" />
<PackageReference Include="Serilog" Version="3.1.1" />
Expand Down
6 changes: 4 additions & 2 deletions src/PresenceLight.Razor/Components/Pages/Color.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
if (appState.Config.LightSettings.Hue.IsEnabled)
{
if (Helpers.AreStringsNotEmpty(new string[] {appState.Config.LightSettings.Hue.HueApiKey,
appState.Config.LightSettings.Hue.HueIpAddress,
appState.Config.LightSettings.Hue.SelectedItemId }))
{
if (appState.Config.LightSettings.Hue.UseRemoteApi)
Expand All @@ -62,7 +61,10 @@
}
else
{
await _mediator.Send(new Core.HueServices.SetColorCommand() { Activity = appState.CustomColor, Availability = appState.CustomColor, LightID = appState.Config.LightSettings.Hue.SelectedItemId});
if (!string.IsNullOrEmpty(appState.Config.LightSettings.Hue.HueIpAddress))
{
await _mediator.Send(new Core.HueServices.SetColorCommand() { Activity = appState.CustomColor, Availability = appState.CustomColor, LightID = appState.Config.LightSettings.Hue.SelectedItemId });
}
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions src/PresenceLight.Razor/PresenceLight.Razor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.ApplicationInsights.SnapshotCollector" Version="1.4.6" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.5" />
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="8.0.5" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Systemd" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="8.0.0" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.60.3" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.18.1" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.18.1" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.18.1" />
<PackageReference Include="Microsoft.Identity.Client" Version="4.61.1" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.18.2" />
<PackageReference Include="Microsoft.Identity.Web.MicrosoftGraph" Version="2.18.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.18.2" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
<PackageReference Include="MudBlazor" Version="6.19.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
Expand Down
8 changes: 4 additions & 4 deletions src/PresenceLight.Web/PresenceLight.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.4" NoWarn="NU1605" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.4" NoWarn="NU1605" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.18.1" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.18.1" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.5" NoWarn="NU1605" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.5" NoWarn="NU1605" />
<PackageReference Include="Microsoft.Identity.Web" Version="2.18.2" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.18.2" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
</ItemGroup>

Expand Down

0 comments on commit 23969bd

Please sign in to comment.