Skip to content

Commit 2741b21

Browse files
authored
Merge pull request #26 from cyiallou/task/update-config
Rename "load" component type to "consumption"
2 parents 40aceba + 33e2803 commit 2741b21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

RELEASE_NOTES.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
## Summary
44

5-
<!-- Here goes a general summary of what this release is about -->
5+
Renamed the `"load"` component type to `"consumption"` for clarity.
66

77
## Upgrading
88

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
9+
If your code references `"load"` as a component type, update it to `"consumption"`.
1010

1111
## New Features
1212

src/frequenz/lib/notebooks/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from dataclasses import dataclass
88
from typing import Any, Literal, cast, get_args
99

10-
ComponentType = Literal["grid", "pv", "battery", "load", "chp"]
10+
ComponentType = Literal["grid", "pv", "battery", "consumption", "chp"]
1111
"""Valid component types."""
1212

1313
ComponentCategory = Literal["meter", "inverter", "component"]

0 commit comments

Comments
 (0)