fix: reset current price state to empty string instead of "0"
This commit is contained in:
@@ -84,7 +84,7 @@ public sealed class NordPoolEntityService(IEntityManager entityManager, ILogger<
|
|||||||
|
|
||||||
private async Task ResetCurrentPriceAsync()
|
private async Task ResetCurrentPriceAsync()
|
||||||
{
|
{
|
||||||
await SetEntityStateSafe(CurrentPriceEntityId, "0").ConfigureAwait(false);
|
await SetEntityStateSafe(CurrentPriceEntityId, string.Empty).ConfigureAwait(false);
|
||||||
await SetEntityAttributesSafe(CurrentPriceEntityId, new
|
await SetEntityAttributesSafe(CurrentPriceEntityId, new
|
||||||
{
|
{
|
||||||
unit_of_measurement = (string?)null,
|
unit_of_measurement = (string?)null,
|
||||||
|
|||||||
Reference in New Issue
Block a user