Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/enapter/http/api/devices/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import random
import secrets
import time
from typing import AsyncGenerator

Expand Down Expand Up @@ -161,4 +161,4 @@ def random_device_name(device_type: DeviceType) -> str:


def random_hardware_id() -> str:
return "V" + "".join(f"{b:02X}" for b in random.randbytes(16))
return "V" + secrets.token_hex(16).upper()
Loading