mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Import the "zeroconf" module only when a user lists mDNS devices (issue with zeroconf's LGPL license)
This commit is contained in:
@ -16,6 +16,8 @@ PlatformIO Core 6
|
||||
6.1.6 (2022-??-??)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Import the "zeroconf" module only when a user lists mDNS devices (issue with zeroconf's LGPL license)
|
||||
|
||||
6.1.5 (2022-11-01)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
@ -18,8 +18,6 @@ import re
|
||||
import time
|
||||
from glob import glob
|
||||
|
||||
import zeroconf
|
||||
|
||||
from platformio import __version__, exception, proc
|
||||
from platformio.compat import IS_MACOS, IS_WINDOWS
|
||||
|
||||
@ -84,6 +82,8 @@ def list_logical_devices():
|
||||
|
||||
|
||||
def list_mdns_services():
|
||||
import zeroconf
|
||||
|
||||
class mDNSListener:
|
||||
def __init__(self):
|
||||
self._zc = zeroconf.Zeroconf(interfaces=zeroconf.InterfaceChoice.All)
|
||||
|
Reference in New Issue
Block a user