Skip to content

Commit 3ef62c9

Browse files
authored
Correct vesync tests to reflect new method (home-assistant#157080)
1 parent 5cca95a commit 3ef62c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/components/vesync/test_humidifier.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ async def test_set_mode(
264264
) -> None:
265265
"""Test handling of value in set_mode method."""
266266

267-
# If VeSyncHumid200300S.set_humidity_mode fails (returns False), then HomeAssistantError is raised
267+
# If VeSyncHumid200300S.set_mode fails (returns False), then HomeAssistantError is raised
268268
with (
269269
expectation,
270270
patch(
@@ -354,7 +354,7 @@ async def test_set_mode_sleep_turns_display_off(
354354
await hass.async_block_till_done()
355355

356356
with (
357-
patch.object(humidifier, "set_humidity_mode", return_value=True),
357+
patch.object(humidifier, "set_mode", return_value=True),
358358
patch.object(humidifier, "toggle_display") as display_mock,
359359
):
360360
await hass.services.async_call(

0 commit comments

Comments
 (0)