Skip to content

Commit

Permalink
Fix naming inconsistencies
Browse files Browse the repository at this point in the history
Thanks @sairon for code review

Co-authored-by: Jan Čermák <[email protected]>
  • Loading branch information
t3hk0d3 and sairon authored Jan 27, 2025
1 parent 0b7f2b6 commit bbb361f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion supervisor/dbus/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class MulticastProtocolEnabled(StrEnum):


class MulticastDnsValue(IntEnum):
"""Connection MulticastDNS (mdns/lldmp) values."""
"""Connection MulticastDNS (mdns/llmnr) values."""

OFF = 0
RESOLVE = 1
Expand Down
6 changes: 3 additions & 3 deletions supervisor/host/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bbb361f

Please sign in to comment.