Update typing 15 (#48079)
This commit is contained in:
parent
dcca29ef68
commit
54d1e9985f
35 changed files with 190 additions and 166 deletions
|
@ -1,7 +1,8 @@
|
|||
"""Tests for the HomeKit component."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
import os
|
||||
from typing import Dict
|
||||
from unittest.mock import ANY, AsyncMock, MagicMock, Mock, patch
|
||||
|
||||
from pyhap.accessory import Accessory
|
||||
|
@ -863,7 +864,7 @@ async def test_homekit_uses_system_zeroconf(hass, hk_driver, mock_zeroconf):
|
|||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
def _write_data(path: str, data: Dict) -> None:
|
||||
def _write_data(path: str, data: dict) -> None:
|
||||
"""Write the data."""
|
||||
if not os.path.isdir(os.path.dirname(path)):
|
||||
os.makedirs(os.path.dirname(path))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue