fix(message.py): provide id_ in ack() and hello()

This commit is contained in:
2025-10-05 13:42:23 +02:00
parent 6ce742667a
commit 1ab577ebd5

View File

@@ -133,6 +133,7 @@ class Message:
Message: The created ACK message. Message: The created ACK message.
""" """
return cls( return cls(
id_=None,
category=Category.CONTROL, category=Category.CONTROL,
action=ControlAction.ACK, action=ControlAction.ACK,
payload={"target_id": target_id}, payload={"target_id": target_id},
@@ -148,6 +149,7 @@ class Message:
Message: The created HELLO message. Message: The created HELLO message.
""" """
return cls( return cls(
id_=None,
category=Category.CONTROL, category=Category.CONTROL,
action=ControlAction.HELLO, action=ControlAction.HELLO,
payload={"mac": mac}, payload={"mac": mac},