[#339] - AUTO mode not counted for active boiler (#424)

Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
This commit is contained in:
Jean-Marc Collin
2024-03-23 09:07:55 +01:00
committed by GitHub
parent d7cdf79561
commit 5db7a49e75
2 changed files with 78 additions and 1 deletions

View File

@@ -730,7 +730,7 @@ class NbActiveDeviceForBoilerSensor(SensorEntity):
entity.name,
)
if (
entity.hvac_mode == HVACMode.HEAT
entity.hvac_mode in [HVACMode.HEAT, HVACMode.AUTO]
and entity.hvac_action == HVACAction.HEATING
):
for under in entity.underlying_entities: