generated from pufereq/python-template
feat(types.py): add TELEMETRY category
This commit is contained in:
@@ -5,14 +5,21 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
|
|
||||||
type ActionType = ControlAction
|
type ActionType = ControlAction | TelemetryAction
|
||||||
|
|
||||||
|
|
||||||
class Category(str, Enum):
|
class Category(str, Enum):
|
||||||
CONTROL = "control"
|
CONTROL = "control"
|
||||||
|
TELEMETRY = "telemetry"
|
||||||
|
|
||||||
|
|
||||||
class ControlAction(str, Enum):
|
class ControlAction(str, Enum):
|
||||||
HELLO = "hello"
|
HELLO = "hello"
|
||||||
ACK = "ack"
|
ACK = "ack"
|
||||||
CLOSE = "close"
|
CLOSE = "close"
|
||||||
|
|
||||||
|
|
||||||
|
class TelemetryAction(str, Enum):
|
||||||
|
INITIAL = "initial"
|
||||||
|
UPDATE = "update"
|
||||||
|
ON_DEMAND = "on_demand"
|
||||||
|
|||||||
Reference in New Issue
Block a user