1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-02 08:26:41 +01:00

Fix numato tests for Python 3.14.3 (#165669)

This commit is contained in:
Martin Hjelmare
2026-03-16 11:17:29 +01:00
committed by GitHub
parent 1cda3f47d6
commit ce2c62ae28

View File

@@ -42,6 +42,7 @@ async def test_regular_hass_operations(hass: HomeAssistant, numato_fixture) -> N
{ATTR_ENTITY_ID: "switch.numato_switch_mock_port5"},
blocking=True,
)
await hass.async_block_till_done()
assert hass.states.get("switch.numato_switch_mock_port5").state == "on"
assert numato_fixture.devices[0].values[5] == 1
await hass.services.async_call(
@@ -50,6 +51,7 @@ async def test_regular_hass_operations(hass: HomeAssistant, numato_fixture) -> N
{ATTR_ENTITY_ID: "switch.numato_switch_mock_port6"},
blocking=True,
)
await hass.async_block_till_done()
assert hass.states.get("switch.numato_switch_mock_port6").state == "on"
assert numato_fixture.devices[0].values[6] == 1
await hass.services.async_call(
@@ -58,6 +60,7 @@ async def test_regular_hass_operations(hass: HomeAssistant, numato_fixture) -> N
{ATTR_ENTITY_ID: "switch.numato_switch_mock_port5"},
blocking=True,
)
await hass.async_block_till_done()
assert hass.states.get("switch.numato_switch_mock_port5").state == "off"
assert numato_fixture.devices[0].values[5] == 0
await hass.services.async_call(
@@ -66,6 +69,7 @@ async def test_regular_hass_operations(hass: HomeAssistant, numato_fixture) -> N
{ATTR_ENTITY_ID: "switch.numato_switch_mock_port6"},
blocking=True,
)
await hass.async_block_till_done()
assert hass.states.get("switch.numato_switch_mock_port6").state == "off"
assert numato_fixture.devices[0].values[6] == 0