Skip to content

Commit e7fcb45

Browse files
authored
Merge pull request #699 from plugwise/value_error
Fix climate-test failing
2 parents 916b26a + 5adceba commit e7fcb45

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Versions from 0.40 and up
44

5+
## Ongoing
6+
7+
- Fix climate-test error: implement homeassistant.exceptions.ServiceValidationError
8+
59
## v0.51.6
610

711
- Implement fix for [#677](https://github.com/plugwise/plugwise-beta/issues/677)

tests/components/plugwise/test_climate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from homeassistant.components.climate.const import HVACMode
1111
from homeassistant.core import HomeAssistant
12-
from homeassistant.exceptions import HomeAssistantError
12+
from homeassistant.exceptions import HomeAssistantError, ServiceValidationError
1313
from homeassistant.util.dt import utcnow
1414

1515
from tests.common import MockConfigEntry, async_fire_time_changed
@@ -202,7 +202,7 @@ async def test_adam_climate_entity_climate_changes(
202202
"c50f167537524366a5af7aa3942feb1e", {"setpoint": 25.0}
203203
)
204204

205-
with pytest.raises(ValueError):
205+
with pytest.raises(ServiceValidationError):
206206
await hass.services.async_call(
207207
"climate",
208208
"set_temperature",

0 commit comments

Comments
 (0)