8000 Start ServiceBrowser as soon as possible in zeroconf by bdraco · Pull Request #50784 · home-assistant/core · GitHub
[go: up one dir, main page]

Skip to content

Start ServiceBrowser as soon as possible in zeroconf #50784

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 18, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typing
  • Loading branch information
bdraco committed May 17, 2021
commit c8076bdd552a5b69833fe456fa7e599f157df625
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