Complete strict typing for recorder (#71274)
* Complete strict typing for recorder * update tests * Update tests/components/recorder/test_migrate.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/recorder/test_migrate.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Remove the asserts * remove ignore comments Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
13ce0a7d6a
commit
eb77f8db85
10 changed files with 166 additions and 309 deletions
|
@ -138,6 +138,8 @@ async def test_shutdown_closes_connections(hass, recorder_mock):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
assert len(pool.shutdown.mock_calls) == 1
|
||||
with pytest.raises(RuntimeError):
|
||||
assert instance.get_session()
|
||||
|
||||
|
||||
async def test_state_gets_saved_when_set_before_start_event(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue