Skip to content

Commit

Permalink
@CodeRabbit: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jkt628 committed Feb 6, 2025
1 parent a8a4db2 commit 072f768
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions supervisor/dbus/network/setting/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,7 @@ def get_connection_from_interface(
CONF_ATTR_802_WIRELESS_ASSIGNED_MAC: Variant("s", "preserve"),
CONF_ATTR_802_WIRELESS_MODE: Variant(
"s",
interface.wifi.mode
if interface.wifi and interface.wifi.mode
else "infrastructure",
(interface.wifi and interface.wifi.mode) or "infrastructure",
),
CONF_ATTR_802_WIRELESS_POWERSAVE: Variant("i", 1),
}
Expand Down

0 comments on commit 072f768

Please sign in to comment.