Skip to content

Commit 9febd66

Browse files
Bump frequenz-channels from 0.16 to 1.0.0b2 (#764)
this is a prerequesite for #556 NB: No changelog entry added, as it seems like it hasen't been done in the past for version changes either (at least I didn't find it)
2 parents 4938fab + d40aedc commit 9febd66

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
- The `BatteryPool.power_status` method now streams objects of type `BatteryPoolReport`, replacing the previous `Report` objects.
1010

11+
- `Channels` has been upgraded to version 1.0.0b2, for information on how to upgrade please read [Channels release notes](https://github.com/frequenz-floss/frequenz-channels-python/releases/tag/v1.0.0-beta.2).
12+
1113
- In `BatteryPoolReport.distribution_result`,
1214
* the following fields have been renamed:
1315
+ `Result.succeeded_batteries``Result.succeeded_components`

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
# Make sure to update the mkdocs.yml file when
3131
# changing the version
3232
# (plugins.mkdocstrings.handlers.python.import)
33-
"frequenz-channels >= 0.16.0, < 0.17.0",
33+
"frequenz-channels == 1.0.0b2",
3434
"google-api-python-client >= 2.71, < 3",
3535
"grpcio >= 1.54.2, < 2",
3636
"grpcio-tools >= 1.54.2, < 2",

src/frequenz/sdk/actor/_channel_registry.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def set_resend_latest(self, key: str, resend_latest: bool) -> None:
4747
self._channels[key] = Broadcast(f"{self._name}-{key}")
4848
# This attribute is protected in the current version of the channels library,
4949
# but that will change in the future.
50-
self._channels[ # pylint: disable=protected-access
51-
key
52-
]._resend_latest = resend_latest
50+
self._channels[key].resend_latest = resend_latest
5351

5452
def new_sender(self, key: str) -> Sender[typing.Any]:
5553
"""Get a sender to a dynamically created channel with the given key.

src/frequenz/sdk/timeseries/battery_pool/_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def _remove_metric_fetcher(
183183
_logger.error(
184184
"Removing component %d from the %s formula.",
185185
component_id,
186-
self._result_channel.name,
186+
self._result_channel._name, # pylint: disable=protected-access
187187
)
188188
fetchers.pop(component_id)
189189

0 commit comments

Comments
 (0)