1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-17 15:44:52 +01:00

Fix kitchen_sink tests for Python 3.14.3 (#165730)

This commit is contained in:
Robert Resch
2026-03-16 22:45:36 +01:00
committed by GitHub
parent ce081d7e71
commit a2da13a0b3

View File

@@ -64,6 +64,7 @@ async def test_turn_on(hass: HomeAssistant, switch_entity_id: str) -> None:
{ATTR_ENTITY_ID: switch_entity_id},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get(switch_entity_id)
assert state.state == STATE_OFF
@@ -74,6 +75,7 @@ async def test_turn_on(hass: HomeAssistant, switch_entity_id: str) -> None:
{ATTR_ENTITY_ID: switch_entity_id},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get(switch_entity_id)
assert state.state == STATE_ON
@@ -88,6 +90,7 @@ async def test_turn_off(hass: HomeAssistant, switch_entity_id: str) -> None:
{ATTR_ENTITY_ID: switch_entity_id},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get(switch_entity_id)
assert state.state == STATE_ON
@@ -98,6 +101,7 @@ async def test_turn_off(hass: HomeAssistant, switch_entity_id: str) -> None:
{ATTR_ENTITY_ID: switch_entity_id},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get(switch_entity_id)
assert state.state == STATE_OFF