Skip to content

Commit

Permalink
async Task for StartEventStream
Browse files Browse the repository at this point in the history
  • Loading branch information
michielpost committed Mar 21, 2024
1 parent 1994d4d commit 911f159
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/HueApi.Tests/HueApi.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.2.2" />
<PackageReference Include="MSTest.TestFramework" Version="3.2.2" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion src/HueApi/HueApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<WarningsAsErrors>nullable</WarningsAsErrors>
<Version>1.6.0</Version>
<Version>1.6.1</Version>
<Authors>Michiel Post</Authors>
<Description>For Clip v2 API. Open source library for interaction with the Philips Hue Bridge. Allows you to control your lights from C#.</Description>
<PackageProjectUrl>https://github.com/michielpost/Q42.HueApi</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/HueApi/LocalHueApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public LocalHueApi(string ip, string? key, HttpClient? client = null)



public async void StartEventStream(HttpClient? client = null, CancellationToken? cancellationToken = null)
public async Task StartEventStream(HttpClient? client = null, CancellationToken? cancellationToken = null)
{
this.eventStreamCancellationTokenSource?.Cancel();

Expand Down
2 changes: 1 addition & 1 deletion src/HueDiagnostics/HueDiagnostics.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<ItemGroup>
<PackageReference Include="CompareNETObjects" Version="4.83.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Q42.HueApi.Streaming/StreamingHueClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected virtual void Send(IEnumerable<IEnumerable<StreamingLight>> chunks)
/// Send a list of states to the Hue Bridge
/// </summary>
/// <param name="states"></param>
protected virtual void Send(List<byte[]> states)
protected virtual void Send(List<byte[]>? states)
{
if (states != null)
{
Expand Down

0 comments on commit 911f159

Please sign in to comment.