Skip to content

Commit e658d37

Browse files
authored
Unpin the code gen tool version and make related changes (#158)
1 parent c4b819e commit e658d37

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/NuttyTree.NetDaemon.Application/ElectronicsTime/ElectronicsTimeApp.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private async Task HandleToDoListChangeAsync(StateChange<TodoEntity, EntityState
124124
{
125125
var reviewItem = todoList.EntityId == maysonsToDoList.EntityId
126126
? await maysonsReviewList.AddItemAsync($"{incompleteItem.Name}", description: $"{DateTime.Now:ddd h:mm tt}")
127-
: await maysonsOptionalReviewList.AddItemAsync($"{incompleteItem.Name}", $"{DateTime.Now:ddd h:mm tt}");
127+
: await maysonsOptionalReviewList.AddItemAsync($"{incompleteItem.Name}", description: "{DateTime.Now:ddd h:mm tt}");
128128
incompleteItem.ReviewUid = reviewItem.Uid;
129129
incompleteItem.CompletedAt = DateTime.UtcNow;
130130
}

src/NuttyTree.NetDaemon.Application/IServiceCollectionExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using NuttyTree.NetDaemon.Application.AppointmentReminders;
55
using NuttyTree.NetDaemon.Application.ElectronicsTime.Extensions;
66
using NuttyTree.NetDaemon.ExternalServices.Frigate;
7+
using NuttyTree.NetDaemon.ExternalServices.HomeAssistantWebhook;
78
using NuttyTree.NetDaemon.ExternalServices.RandomWords;
89
using NuttyTree.NetDaemon.ExternalServices.Waze;
910
using NuttyTree.NetDaemon.Infrastructure.Database;
@@ -28,7 +29,8 @@ public static IServiceCollection AddApplication(this IServiceCollection services
2829
services
2930
.AddRandomWords()
3031
.AddWaze()
31-
.AddFrigate();
32+
.AddFrigate()
33+
.AddHomeAssistantWebhooks();
3234

3335
// Infrastructure
3436
services

src/NuttyTree.NetDaemon.Infrastructure/HomeAssistant/Extensions/TodoEntityExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public static class TodoEntityExtensions
1414
public static async Task<TodoListItem> AddItemAsync(
1515
this TodoEntity entity,
1616
string item,
17-
object? dueDate = null,
18-
object? dueDatetime = null,
17+
DateOnly? dueDate = null,
18+
DateTime? dueDatetime = null,
1919
string? description = null,
2020
CancellationToken cancellationToken = default)
2121
{
@@ -48,7 +48,7 @@ public static void UpdateItem(
4848
object? dueDatetime = null,
4949
string? description = null)
5050
{
51-
entity.UpdateItem($"{uid}", name, $"{status}", dueDate, dueDatetime, description);
51+
entity.UpdateItem(uid, name, status, dueDate, dueDatetime, description);
5252
}
5353

5454
public static void RemoveItem(this TodoEntity entity, Guid uid)

src/NuttyTree.NetDaemon.Infrastructure/NuttyTree.NetDaemon.Infrastructure.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</ItemGroup>
2323

2424
<Target Name="PreBuild" BeforeTargets="PrepareForBuild">
25-
<Exec Command="dotnet tool update -g NetDaemon.HassModel.CodeGen --version 24.28.1" />
25+
<Exec Command="dotnet tool update -g NetDaemon.HassModel.CodeGen" />
2626
<Exec Command="nd-codegen -o ../NuttyTree.NetDaemon.Infrastructure/HomeAssistant/EntitiesAndServices.cs -ns NuttyTree.NetDaemon.Infrastructure.HomeAssistant" WorkingDirectory="..\NuttyTree.NetDaemon" />
2727

2828
<ItemGroup>

0 commit comments

Comments
 (0)