mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
Drop Python 3.10 support, require Python 3.11+ (#9522)
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,7 @@ async def test_host_mode_with_sensor(
|
||||
# Wait for sensor with specific value (42.0) with timeout
|
||||
try:
|
||||
test_sensor_state = await asyncio.wait_for(sensor_future, timeout=5.0)
|
||||
except asyncio.TimeoutError:
|
||||
except TimeoutError:
|
||||
pytest.fail(
|
||||
f"Sensor with value 42.0 not received within 5 seconds. "
|
||||
f"Received states: {list(states.values())}"
|
||||
|
Reference in New Issue
Block a user