From bbb361fead9cced0c6db3f23353822e995a16047 Mon Sep 17 00:00:00 2001 From: Igor Yamolov Date: Mon, 27 Jan 2025 10:16:53 +0100 Subject: [PATCH] Fix naming inconsistencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks @sairon for code review Co-authored-by: Jan Čermák --- supervisor/dbus/const.py | 2 +- supervisor/host/configuration.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/supervisor/dbus/const.py b/supervisor/dbus/const.py index e16f94a65c5..b6c4dd2257f 100644 --- a/supervisor/dbus/const.py +++ b/supervisor/dbus/const.py @@ -297,7 +297,7 @@ class MulticastProtocolEnabled(StrEnum): class MulticastDnsValue(IntEnum): - """Connection MulticastDNS (mdns/lldmp) values.""" + """Connection MulticastDNS (mdns/llmnr) values.""" OFF = 0 RESOLVE = 1 diff --git a/supervisor/host/configuration.py b/supervisor/host/configuration.py index a0f9deb9665..780fa96228a 100644 --- a/supervisor/host/configuration.py +++ b/supervisor/host/configuration.py @@ -156,10 +156,10 @@ def from_dbus_interface(inet: NetworkInterface) -> "Interface": if inet.settings and inet.settings.connection: mdns = inet.settings.connection.mdns - lldmp = inet.settings.connection.lldmp + llmnr = inet.settings.connection.llmnr else: mdns = None - lldmp = None + llmnr = None return Interface( inet.name, @@ -198,7 +198,7 @@ def from_dbus_interface(inet: NetworkInterface) -> "Interface": Interface._map_nm_wifi(inet), Interface._map_nm_vlan(inet), Interface._map_nm_multicast_dns(mdns), - Interface._map_nm_multicast_dns(lldmp), + Interface._map_nm_multicast_dns(llmnr), ) @staticmethod