mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 18:44:27 +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-??-??)
|
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)
|
6.1.5 (2022-11-01)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@@ -18,8 +18,6 @@ import re
|
|||||||
import time
|
import time
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
import zeroconf
|
|
||||||
|
|
||||||
from platformio import __version__, exception, proc
|
from platformio import __version__, exception, proc
|
||||||
from platformio.compat import IS_MACOS, IS_WINDOWS
|
from platformio.compat import IS_MACOS, IS_WINDOWS
|
||||||
|
|
||||||
@@ -84,6 +82,8 @@ def list_logical_devices():
|
|||||||
|
|
||||||
|
|
||||||
def list_mdns_services():
|
def list_mdns_services():
|
||||||
|
import zeroconf
|
||||||
|
|
||||||
class mDNSListener:
|
class mDNSListener:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._zc = zeroconf.Zeroconf(interfaces=zeroconf.InterfaceChoice.All)
|
self._zc = zeroconf.Zeroconf(interfaces=zeroconf.InterfaceChoice.All)
|
||||||
|
Reference in New Issue
Block a user