Skip to content

Commit d6d1c6a

Browse files
committed
Use marshmallow dataclass for microgrid config
Signed-off-by: cwasicki <[email protected]>
1 parent 4ca523b commit d6d1c6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frequenz/data/microgrid/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
import logging
77
import re
88
import tomllib
9-
from dataclasses import dataclass
109
from pathlib import Path
1110
from typing import Any, Literal, cast, get_args
1211

12+
from marshmallow_dataclass import dataclass
13+
1314
_logger = logging.getLogger(__name__)
1415

1516
ComponentType = Literal["grid", "pv", "battery", "consumption", "chp", "ev"]

0 commit comments

Comments
 (0)