Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed May 17, 2021
1 parent f86abbe commit 2052fa0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/zeroconf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
from __future__ import annotations

import asyncio
from collections.abc import Iterable
from collections.abc import Coroutine, Iterable
from contextlib import suppress
import fnmatch
import ipaddress
from ipaddress import ip_address
import logging
import socket
from typing import Any, Coroutine, TypedDict, cast
from typing import Any, TypedDict, cast

from pyroute2 import IPRoute
import voluptuous as vol
Expand Down Expand Up @@ -295,7 +295,7 @@ def async_start(self) -> None:
def create(self, flow: ZeroconfFlow) -> None:
"""Create and add or queue a flow."""
if self.started:
self.hass.add_job(self._init_flow(flow)) # type: ignore[arg-type]
self.hass.create_task(self._init_flow(flow))
else:
self.pending_flows.append(flow)

Expand Down

0 comments on commit 2052fa0

Please sign in to comment.