fix: reset current price state to empty string instead of "0"

This commit is contained in:
Marius
2026-03-19 16:46:21 +02:00
parent 4a8eb30304
commit a14fb65be3
+1 -1
View File
@@ -84,7 +84,7 @@ public sealed class NordPoolEntityService(IEntityManager entityManager, ILogger<
private async Task ResetCurrentPriceAsync()
{
await SetEntityStateSafe(CurrentPriceEntityId, "0").ConfigureAwait(false);
await SetEntityStateSafe(CurrentPriceEntityId, string.Empty).ConfigureAwait(false);
await SetEntityAttributesSafe(CurrentPriceEntityId, new
{
unit_of_measurement = (string?)null,