Fix type in config gen to_dict
This commit is contained in:
@@ -35,7 +35,7 @@ class ConfigGenerator:
|
||||
# Add a method to convert to a dictionary, useful for sending as JSON
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
data = {
|
||||
"type": self.type.value, # Use .value for Enum
|
||||
"type": self.type,
|
||||
"systemName": self.systemName,
|
||||
"frequencies": self.frequencies,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user