You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Adapt code to v1alpha8 API of frequenz-client-common
The `frequenz-client-common` dependency has been updated, which introduced breaking changes from the new `v1alpha8` API. This commit adapts the codebase to these changes, resolving the resulting `nox` failures across `mypy`, `pytest`, and formatters.
Key changes include:
- Replacing the deprecated `ComponentCategory` with `v1alpha8`'s `ElectricalComponentCategory`.
- Updating enum members to match the new API, such as `ElectricalComponentCategory.GRID` to `GRID_CONNECTION_POINT` and `InverterType.PV` to `InverterType.SOLAR`.
- Adjusting `Event` enum usage (e.g., `Event.CREATED` is now `Event.EVENT_CREATED`).
Signed-off-by: Mathias L. Baumann <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@
6
6
7
7
## Upgrading
8
8
9
+
* The client has been updated to support breaking changes in the `v1alpha8` API of the `frequenz-client-common` dependency.
10
+
*`ComponentCategory` has been replaced with `ElectricalComponentCategory`.
11
+
* Enum members were updated to align with the new API (e.g., `ElectricalComponentCategory.GRID` is now `ElectricalComponentCategory.GRID_CONNECTION_POINT`).
12
+
*`Event` enum usage was updated (e.g., `Event.CREATED` is now `Event.EVENT_CREATED`).
13
+
* The `DispatchApiClient.list()` method signature was updated to use new filter argument names.
14
+
9
15
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10
16
11
17
## New Features
@@ -19,3 +25,11 @@
19
25
## Bug Fixes
20
26
21
27
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
28
+
29
+
## Changed
30
+
31
+
* Adapted the client to breaking changes in the `v1alpha8` API of the `frequenz-client-common` dependency.
32
+
* Replaced `ComponentCategory` with `ElectricalComponentCategory`.
33
+
* Updated various enum members to match the new API (e.g., `ElectricalComponentCategory.GRID` is now `ElectricalComponentCategory.GRID_CONNECTION_POINT`).
34
+
* Aligned `Event` enum usage with the new API (e.g., `Event.CREATED` is now `Event.EVENT_CREATED`).
35
+
* Updated `DispatchApiClient.list()` method signature to use new filter argument names.
0 commit comments