Update typing 15 (#48079)

This commit is contained in:
Marc Mueller 2021-03-18 15:13:22 +01:00 committed by GitHub
parent dcca29ef68
commit 54d1e9985f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 190 additions and 166 deletions

View file

@ -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))