Fix sql test warning (#99556)

This commit is contained in:
Marc Mueller 2023-09-04 02:58:13 +02:00 committed by GitHub
parent 115518cab9
commit 735b5cf1a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -502,6 +502,9 @@ async def test_multiple_sensors_using_same_db(
assert state.state == "5"
assert state.attributes["value"] == 5
with patch("sqlalchemy.engine.base.Engine.dispose"):
await hass.async_stop()
async def test_engine_is_disposed_at_stop(
recorder_mock: Recorder, hass: HomeAssistant