mirror of
https://github.com/home-assistant/core.git
synced 2026-12-03 04:08:19 -04:00
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:
co-authored by
Claude Opus 5.5
parent
9ab5ce3afa
commit
82aede9bbf
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user