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
- **Remove some unnecessary pylint exceptions**
- **Add a missing `UNKNOWN` EV charger component state**
- **Return `UNKNOWN` instead of `UNSPECIFIED` for unknown states**
- **Wrap missing component errors**
- **Wrap missing component states**
- **Unify the style with the new wrappers**
- **Update release notes**
- **Prepare release notes for the v0.4.0 release**
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Summary
4
4
5
-
<!-- Here goes a general summary of what this release is about -->
5
+
This release migrates to use `betterproto` and `grpclib` instead of `grpcio` and `protobuf` internally. It also stops *leaking* these internal libraries to downstream users. It should now be possible to use the client without having to use `grpclib` or `betterproto` directly.
6
6
7
7
## Upgrading
8
8
@@ -16,6 +16,8 @@
16
16
17
17
- The client now uses protobuf/grpc bindings generated [betterproto](https://github.com/danielgtaylor/python-betterproto) ([frequenz-microgrid-betterproto](https://github.com/frequenz-floss/frequenz-microgrid-betterproto-python)) instead of [grpcio](https://pypi.org/project/grpcio/) ([frequenz-api-microgrid](https://github.com/frequenz-floss/frequenz-api-microgrid)). If you were using the bindings directly, you might need to do some minor adjustments to your code.
18
18
19
+
- If an unknown EV charger component state is received, it will now be set to `EVChargerComponentState.UNKNOWN` instead of `EVChargerComponentState.UNSPECIFIED`.
20
+
19
21
## New Features
20
22
21
23
- The client now raises more specific exceptions based on the gRPC status code, so you can more easily handle different types of errors.
@@ -39,6 +41,18 @@
39
41
...
40
42
```
41
43
44
+
- We now expose component errors as part of the streamed component data:
45
+
46
+
*`BatteryData.errors`
47
+
*`InverterData.errors`
48
+
49
+
- We now expose component states as part of the streamed component data:
50
+
51
+
*`BatteryData.component_state` and `BatteryData.relay_state`
52
+
*`InverterData.component_state`
53
+
54
+
- Added the missing `EVChargerComponentState.UNKNOWN` state.
55
+
42
56
## Bug Fixes
43
57
44
58
- Fix a leakage of `GrpcStreamBroadcaster` instances.
0 commit comments