Skip to content

Commit

Permalink
Resepect capitialization of network interfaces (#3646)
Browse files Browse the repository at this point in the history
  • Loading branch information
agners authored May 19, 2022
1 parent 2c09021 commit 2fe358f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions supervisor/api/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ class APINetwork(CoreSysAttributes):

def _get_interface(self, name: str) -> Interface:
"""Get Interface by name or default."""
name = name.lower()

if name == "default":
if name.lower() == "default":
for interface in self.sys_host.network.interfaces:
if not interface.primary:
continue
Expand Down

0 comments on commit 2fe358f

Please sign in to comment.