Skip to content

Commit

Permalink
Zeroconf import (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnyminerZ authored Feb 19, 2021
1 parent f37ef16 commit 14a3b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glocaltokens/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
from threading import Event
from typing import List, Optional

import zeroconf

from .const import DISCOVER_TIMEOUT
from .utils import network as net_utils
from .utils import types as type_utils
Expand Down Expand Up @@ -106,6 +104,8 @@ def discover_devices(
timeout: int = DISCOVER_TIMEOUT,
):
# pylint: disable=unused-argument
import zeroconf

def callback():
"""Called when zeroconf has discovered a new chromecast."""
if max_devices is not None and listener.count >= max_devices:
Expand Down

0 comments on commit 14a3b22

Please sign in to comment.