1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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
35 changed files with 190 additions and 166 deletions

View File

@@ -1,6 +1,6 @@
"""deconz conftest."""
from __future__ import annotations
from typing import Optional
from unittest.mock import patch
import pytest
@@ -13,7 +13,7 @@ def mock_deconz_websocket():
"""No real websocket allowed."""
with patch("pydeconz.gateway.WSClient") as mock:
async def make_websocket_call(data: Optional[dict] = None, state: str = ""):
async def make_websocket_call(data: dict | None = None, state: str = ""):
"""Generate a websocket call."""
pydeconz_gateway_session_handler = mock.call_args[0][3]