Change Climate set temp action for incorrect feature will raise (#126692)

* Change Climate set temp action for incorrect feature will raise

* Fix some tests

* Fix review comments

* Fix tesla_fleet

* Fix tests

* Fix review comment
This commit is contained in:
G Johansson
2024-09-25 21:16:14 +02:00
committed by GitHub
parent 9afd270111
commit c6a1b9fc39
13 changed files with 85 additions and 166 deletions

View File

@@ -216,7 +216,7 @@ async def test_thermostat_set_no_temperature(
hass: HomeAssistant, cube: MaxCube, thermostat: MaxThermostat
) -> None:
"""Set hvac mode to heat."""
with pytest.raises(ValueError):
with pytest.raises(ServiceValidationError):
await hass.services.async_call(
CLIMATE_DOMAIN,
SERVICE_SET_TEMPERATURE,