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

Fix wake_on_lan tests for Python 3.14.3 (#165733)

This commit is contained in:
Robert Resch
2026-03-16 22:44:23 +01:00
committed by GitHub
parent a963eed3a7
commit 592b7e5594

View File

@@ -46,6 +46,7 @@ async def test_valid_hostname(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_ON
@@ -56,6 +57,7 @@ async def test_valid_hostname(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_ON
@@ -193,6 +195,7 @@ async def test_off_script(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_ON
@@ -205,6 +208,7 @@ async def test_off_script(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_OFF
@@ -237,6 +241,7 @@ async def test_no_hostname_state(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_ON
@@ -247,6 +252,7 @@ async def test_no_hostname_state(
{ATTR_ENTITY_ID: "switch.wake_on_lan"},
blocking=True,
)
await hass.async_block_till_done()
state = hass.states.get("switch.wake_on_lan")
assert state.state == STATE_OFF