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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user