File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/frequenz/data/microgrid Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 66import logging
77import re
88import tomllib
9+ from dataclasses import field
910from pathlib import Path
1011from typing import Any , Literal , cast , get_args
1112
@@ -207,13 +208,13 @@ class Metadata:
207208class MicrogridConfig :
208209 """Configuration of a microgrid."""
209210
210- meta : Metadata
211+ meta : Metadata | None = None
211212 """Metadata of the microgrid."""
212213
213- assets : AssetsConfig
214+ assets : AssetsConfig | None = None
214215 """Configuration of the assets in the microgrid."""
215216
216- ctype : dict [str , ComponentTypeConfig ]
217+ ctype : dict [str , ComponentTypeConfig ] = field ( default_factory = dict )
217218 """Mapping of component category types to ac power component config."""
218219
219220 def __init__ (self , config_dict : dict [str , Any ]) -> None :
You can’t perform that action at this time.
0 commit comments