Fix overpowering is set even if other heater have on_percent = 0

This commit is contained in:
Jean-Marc Collin
2025-01-04 19:21:06 +00:00
parent 10c8281b32
commit 460281603f
6 changed files with 31 additions and 7 deletions

View File

@@ -487,6 +487,13 @@ async def test_power_management_hvac_on(
assert entity.power_manager.overpowering_state is STATE_UNKNOWN
assert entity.target_temperature == 19
# make the heater heats
await send_temperature_change_event(entity, 15, now)
await send_ext_temperature_change_event(entity, 1, now)
await hass.async_block_till_done()
assert entity.power_percent > 0
# Send power mesurement
side_effects = SideEffects(
{