Skip to content

Commit 39f569d

Browse files
authored
Merge pull request #163 from cwasicki/ids
Add microgrid and enterprise ID to microgrid config
2 parents 21cd208 + c16ada0 commit 39f569d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
## New Features
1212

1313
* Add fields to `WindConfig` for microgrid configuration.
14+
* Add microgrid and enterprise ID to microgrid metadata config.
1415

1516
## Bug Fixes
1617

src/frequenz/data/microgrid/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,20 @@ class AssetsConfig:
172172
"""Configuration of the batteries."""
173173

174174

175+
# pylint: disable=too-many-instance-attributes
175176
@dataclass(frozen=True)
176177
class Metadata:
177178
"""Metadata for a microgrid."""
178179

179180
name: str | None = None
180181
"""Name of the microgrid."""
181182

183+
microgrid_id: int | None = None
184+
"""ID of the microgrid."""
185+
186+
enterprise_id: int | None = None
187+
"""Enterprise ID of the microgrid."""
188+
182189
gid: int | None = None
183190
"""Gridpool ID of the microgrid."""
184191

0 commit comments

Comments
 (0)