Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Apr 27, 2024
1 parent 9e714aa commit 0f3e095
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions systembridgebackend/modules/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@ async def _get_ip_address_6(self) -> str:

def _get_mac_address(self) -> str:
"""Get MAC address."""
# pylint: disable=consider-using-f-string
return ":".join(re.findall("..", "%012x" % uuid.getnode()))
return ":".join(re.findall("..", f"{uuid.getnode():012x}"))

async def _get_pending_reboot(self) -> bool:
"""Check if there is a pending reboot."""
Expand Down

0 comments on commit 0f3e095

Please sign in to comment.