feat: migrate boiler control implementation to BoilerMonitor namespace and add budget handling logic

This commit is contained in:
Marius
2026-03-24 15:29:59 +02:00
parent c4015277a3
commit 11c2574235
61 changed files with 3250 additions and 728 deletions
@@ -40,9 +40,20 @@ public class PowerSensorDiscoveryServiceTests
foreach (var (entityId, deviceClass, unit, friendlyName) in entities)
{
var attributes = new Dictionary<string, object?>();
if (deviceClass is not null) attributes["device_class"] = deviceClass;
if (unit is not null) attributes["unit_of_measurement"] = unit;
if (friendlyName is not null) attributes["friendly_name"] = friendlyName;
if (deviceClass is not null)
{
attributes["device_class"] = deviceClass;
}
if (unit is not null)
{
attributes["unit_of_measurement"] = unit;
}
if (friendlyName is not null)
{
attributes["friendly_name"] = friendlyName;
}
var attributesJson = JsonSerializer.SerializeToElement(attributes);
var entityState = new EntityState { AttributesJson = attributesJson };