Refresh Shelly thermostat config in place on setpoint and mode changes (#195180)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shay Levy
2026-11-28 21:21:01 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 9ab5ce3afa
commit 82aede9bbf
2 changed files with 5 additions and 0 deletions
@@ -123,6 +123,7 @@ RPC_CONFIG_STATE_KEYS: dict[str, frozenset[str] | None] = {
"ui": None,
"switch": frozenset({"in_locked"}),
"cover": frozenset({"in_locked"}),
"thermostat": frozenset({"enable", "target_C"}),
}
@@ -507,6 +507,10 @@ def _inject_config_changed(
pytest.param("switch:0", {"in_locked", "name"}, 1, id="switch_mixed_keys"),
pytest.param("cover:0", {"in_locked"}, 0, id="cover_state_key"),
pytest.param("cover:0", {"name"}, 1, id="cover_other_key"),
pytest.param(
"thermostat:0", {"enable", "target_C"}, 0, id="thermostat_state_keys"
),
pytest.param("thermostat:0", {"type"}, 1, id="thermostat_other_key"),
],
)
async def test_rpc_cfg_change_refresh(