generated from pufereq/python-template
fix(message.py): provide id_ in ack() and hello()
This commit is contained in:
@@ -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},
|
||||||
|
|||||||
Reference in New Issue
Block a user