Issue_766-enhance_power_management (#778)
* First implem + tests (not finished) * With tests of calculate_shedding ok * Commit for rebase * All tests ok for central_feature_power_manager * All tests not ok * All tests ok * integrattion tests - Do startup works * enhance the overpowering algo if current_power > max_power * Change shedding calculation delay to 20 sec (vs 60 sec) * Integration tests ok * Fix overpowering is set even if other heater have on_percent = 0 * Fix too much shedding in over_climate * Add logs * Add temporal filter for calculate_shedding Add restore overpowering state at startup * Fix restore overpowering_state * Removes poweer_entity_id from vtherm non central config * Release * Add Sonoff TRVZB in creation.md * Add comment on Sonoff TRVZB Closing degree --------- Co-authored-by: Jean-Marc Collin <jean-marc.collin-extern@renault.com>
This commit is contained in:
@@ -90,7 +90,7 @@ async def test_motion_feature_manager_refresh(
|
||||
assert custom_attributes["motion_off_delay_sec"] == 30
|
||||
|
||||
# 3. start listening
|
||||
motion_manager.start_listening()
|
||||
await motion_manager.start_listening()
|
||||
assert motion_manager.is_configured is True
|
||||
assert motion_manager.motion_state == STATE_UNKNOWN
|
||||
assert motion_manager.is_motion_detected is False
|
||||
@@ -198,7 +198,7 @@ async def test_motion_feature_manager_event(
|
||||
CONF_NO_MOTION_PRESET: PRESET_ECO,
|
||||
}
|
||||
)
|
||||
motion_manager.start_listening()
|
||||
await motion_manager.start_listening()
|
||||
|
||||
# 2. test _motion_sensor_changed with the parametrized
|
||||
# fmt: off
|
||||
|
||||
Reference in New Issue
Block a user