Skip to content

Commit c776537

Browse files
authored
Bump black from 23.12.1 to 24.1.1 (#865)
Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.1.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/psf/black/releases">black's releases</a>.</em></p> <blockquote> <h2>24.1.1</h2> <p>Bugfix release to fix a bug that made Black unusable on certain file systems with strict limits on path length.</p> <h3>Preview style</h3> <ul> <li>Consistently add trailing comma on typed parameters (<a href="https://redirect.github.com/psf/black/issues/4164">#4164</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Shorten the length of the name of the cache file to fix crashes on file systems that do not support long paths (<a href="https://redirect.github.com/psf/black/issues/4176">#4176</a>)</li> </ul> <h2>24.1.0</h2> <h3>Highlights</h3> <p>This release introduces the new 2024 stable style (<a href="https://redirect.github.com/psf/black/issues/4106">#4106</a>), stabilizing the following changes:</p> <ul> <li>Add parentheses around <code>if</code>-<code>else</code> expressions (<a href="https://redirect.github.com/psf/black/issues/2278">#2278</a>)</li> <li>Dummy class and function implementations consisting only of <code>...</code> are formatted more compactly (<a href="https://redirect.github.com/psf/black/issues/3796">#3796</a>)</li> <li>If an assignment statement is too long, we now prefer splitting on the right-hand side (<a href="https://redirect.github.com/psf/black/issues/3368">#3368</a>)</li> <li>Hex codes in Unicode escape sequences are now standardized to lowercase (<a href="https://redirect.github.com/psf/black/issues/2916">#2916</a>)</li> <li>Allow empty first lines at the beginning of most blocks (<a href="https://redirect.github.com/psf/black/issues/3967">#3967</a>, <a href="https://redirect.github.com/psf/black/issues/4061">#4061</a>)</li> <li>Add parentheses around long type annotations (<a href="https://redirect.github.com/psf/black/issues/3899">#3899</a>)</li> <li>Enforce newline after module docstrings (<a href="https://redirect.github.com/psf/black/issues/3932">#3932</a>, <a href="https://redirect.github.com/psf/black/issues/4028">#4028</a>)</li> <li>Fix incorrect magic trailing comma handling in return types (<a href="https://redirect.github.com/psf/black/issues/3916">#3916</a>)</li> <li>Remove blank lines before class docstrings (<a href="https://redirect.github.com/psf/black/issues/3692">#3692</a>)</li> <li>Wrap multiple context managers in parentheses if combined in a single <code>with</code> statement (<a href="https://redirect.github.com/psf/black/issues/3489">#3489</a>)</li> <li>Fix bug in line length calculations for power operations (<a href="https://redirect.github.com/psf/black/issues/3942">#3942</a>)</li> <li>Add trailing commas to collection literals even if there's a comment after the last entry (<a href="https://redirect.github.com/psf/black/issues/3393">#3393</a>)</li> <li>When using <code>--skip-magic-trailing-comma</code> or <code>-C</code>, trailing commas are stripped from subscript expressions with more than 1 element (<a href="https://redirect.github.com/psf/black/issues/3209">#3209</a>)</li> <li>Add extra blank lines in stubs in a few cases (<a href="https://redirect.github.com/psf/black/issues/3564">#3564</a>, <a href="https://redirect.github.com/psf/black/issues/3862">#3862</a>)</li> <li>Accept raw strings as docstrings (<a href="https://redirect.github.com/psf/black/issues/3947">#3947</a>)</li> <li>Split long lines in case blocks (<a href="https://redirect.github.com/psf/black/issues/4024">#4024</a>)</li> <li>Stop removing spaces from walrus operators within subscripts (<a href="https://redirect.github.com/psf/black/issues/3823">#3823</a>)</li> <li>Fix incorrect formatting of certain async statements (<a href="https://redirect.github.com/psf/black/issues/3609">#3609</a>)</li> <li>Allow combining <code># fmt: skip</code> with other comments (<a href="https://redirect.github.com/psf/black/issues/3959">#3959</a>)</li> </ul> <p>There are already a few improvements in the <code>--preview</code> style, which are slated for the 2025 stable style. Try them out and <a href="https://github.com/psf/black/issues">share your feedback</a>. In the past, the preview style has included some features that we were not able to stabilize. This year, we're</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/psf/black/blob/main/CHANGES.md">black's changelog</a>.</em></p> <blockquote> <h2>24.1.1</h2> <p>Bugfix release to fix a bug that made Black unusable on certain file systems with strict limits on path length.</p> <h3>Preview style</h3> <ul> <li>Consistently add trailing comma on typed parameters (<a href="https://redirect.github.com/psf/black/issues/4164">#4164</a>)</li> </ul> <h3>Configuration</h3> <ul> <li>Shorten the length of the name of the cache file to fix crashes on file systems that do not support long paths (<a href="https://redirect.github.com/psf/black/issues/4176">#4176</a>)</li> </ul> <h2>24.1.0</h2> <h3>Highlights</h3> <p>This release introduces the new 2024 stable style (<a href="https://redirect.github.com/psf/black/issues/4106">#4106</a>), stabilizing the following changes:</p> <ul> <li>Add parentheses around <code>if</code>-<code>else</code> expressions (<a href="https://redirect.github.com/psf/black/issues/2278">#2278</a>)</li> <li>Dummy class and function implementations consisting only of <code>...</code> are formatted more compactly (<a href="https://redirect.github.com/psf/black/issues/3796">#3796</a>)</li> <li>If an assignment statement is too long, we now prefer splitting on the right-hand side (<a href="https://redirect.github.com/psf/black/issues/3368">#3368</a>)</li> <li>Hex codes in Unicode escape sequences are now standardized to lowercase (<a href="https://redirect.github.com/psf/black/issues/2916">#2916</a>)</li> <li>Allow empty first lines at the beginning of most blocks (<a href="https://redirect.github.com/psf/black/issues/3967">#3967</a>, <a href="https://redirect.github.com/psf/black/issues/4061">#4061</a>)</li> <li>Add parentheses around long type annotations (<a href="https://redirect.github.com/psf/black/issues/3899">#3899</a>)</li> <li>Enforce newline after module docstrings (<a href="https://redirect.github.com/psf/black/issues/3932">#3932</a>, <a href="https://redirect.github.com/psf/black/issues/4028">#4028</a>)</li> <li>Fix incorrect magic trailing comma handling in return types (<a href="https://redirect.github.com/psf/black/issues/3916">#3916</a>)</li> <li>Remove blank lines before class docstrings (<a href="https://redirect.github.com/psf/black/issues/3692">#3692</a>)</li> <li>Wrap multiple context managers in parentheses if combined in a single <code>with</code> statement (<a href="https://redirect.github.com/psf/black/issues/3489">#3489</a>)</li> <li>Fix bug in line length calculations for power operations (<a href="https://redirect.github.com/psf/black/issues/3942">#3942</a>)</li> <li>Add trailing commas to collection literals even if there's a comment after the last entry (<a href="https://redirect.github.com/psf/black/issues/3393">#3393</a>)</li> <li>When using <code>--skip-magic-trailing-comma</code> or <code>-C</code>, trailing commas are stripped from subscript expressions with more than 1 element (<a href="https://redirect.github.com/psf/black/issues/3209">#3209</a>)</li> <li>Add extra blank lines in stubs in a few cases (<a href="https://redirect.github.com/psf/black/issues/3564">#3564</a>, <a href="https://redirect.github.com/psf/black/issues/3862">#3862</a>)</li> <li>Accept raw strings as docstrings (<a href="https://redirect.github.com/psf/black/issues/3947">#3947</a>)</li> <li>Split long lines in case blocks (<a href="https://redirect.github.com/psf/black/issues/4024">#4024</a>)</li> <li>Stop removing spaces from walrus operators within subscripts (<a href="https://redirect.github.com/psf/black/issues/3823">#3823</a>)</li> <li>Fix incorrect formatting of certain async statements (<a href="https://redirect.github.com/psf/black/issues/3609">#3609</a>)</li> <li>Allow combining <code># fmt: skip</code> with other comments (<a href="https://redirect.github.com/psf/black/issues/3959">#3959</a>)</li> </ul> <p>There are already a few improvements in the <code>--preview</code> style, which are slated for the 2025 stable style. Try them out and <a href="https://github.com/psf/black/issues">share your feedback</a>. In the past, the preview style has included some features that we were not able to stabilize. This year, we're</p> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/psf/black/commit/e026c93888f91a47a9c9f4e029f3eb07d96375e6"><code>e026c93</code></a> Prepare release 24.1.1 (<a href="https://redirect.github.com/psf/black/issues/4186">#4186</a>)</li> <li><a href="https://github.com/psf/black/commit/79fc1158a98281dac798feb14b8fddb4051e4a42"><code>79fc115</code></a> chore: ignore node_modules (produced by a pre-commit check) (<a href="https://redirect.github.com/psf/black/issues/4184">#4184</a>)</li> <li><a href="https://github.com/psf/black/commit/8bf04549ffd276a1bad6eb110e66e6557ee630d9"><code>8bf0454</code></a> Consistently add trailing comma on typed parameters (<a href="https://redirect.github.com/psf/black/issues/4164">#4164</a>)</li> <li><a href="https://github.com/psf/black/commit/1607e9ab20ad550cf940482d0d361ca31fc03189"><code>1607e9a</code></a> Fix missing space in option description (<a href="https://redirect.github.com/psf/black/issues/4182">#4182</a>)</li> <li><a href="https://github.com/psf/black/commit/ed770ba4dd50c419148a0fca2b43937a7447e1f9"><code>ed770ba</code></a> Fix cache file length (<a href="https://redirect.github.com/psf/black/issues/4176">#4176</a>)</li> <li><a href="https://github.com/psf/black/commit/659c29a41c7c686687aef21f57b95bcfa236b03b"><code>659c29a</code></a> New changelog</li> <li><a href="https://github.com/psf/black/commit/0e6e46b9eb45f5a22062fe84c2c2ff46bd0d738e"><code>0e6e46b</code></a> Prepare release 24.1.0 (<a href="https://redirect.github.com/psf/black/issues/4170">#4170</a>)</li> <li><a href="https://github.com/psf/black/commit/4f47cac1925a2232892ceae438e2c62f81517714"><code>4f47cac</code></a> Add --unstable flag (<a href="https://redirect.github.com/psf/black/issues/4096">#4096</a>)</li> <li><a href="https://github.com/psf/black/commit/bccec8adfbed2bbc24c0859e8758d5e7809d42b7"><code>bccec8a</code></a> Show warning on invalid toml configuration (<a href="https://redirect.github.com/psf/black/issues/4165">#4165</a>)</li> <li><a href="https://github.com/psf/black/commit/7d789469ed947022f183962b823f5862511272ac"><code>7d78946</code></a> Describe 2024 module docstring more accurately (<a href="https://redirect.github.com/psf/black/issues/4168">#4168</a>)</li> <li>Additional commits viewable in <a href="https://github.com/psf/black/compare/23.12.1...24.1.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=black&package-manager=pip&previous-version=23.12.1&new-version=24.1.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details>
2 parents 1b46751 + 5dcb942 commit c776537

File tree

25 files changed

+234
-215
lines changed

25 files changed

+234
-215
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ dev-flake8 = [
5858
"pydocstyle == 6.3.0",
5959
]
6060
dev-examples = ["polars == 0.20.2"]
61-
dev-formatting = ["black == 23.12.1", "isort == 5.13.2"]
61+
dev-formatting = ["black == 24.1.1", "isort == 5.13.2"]
6262
dev-mkdocs = [
63-
"black == 23.12.1",
63+
"black == 24.1.1",
6464
"Markdown==3.5.1",
6565
"mike == 2.0.0",
6666
"mkdocs-gen-files == 0.5.0",

src/frequenz/sdk/actor/_data_sourcing/microgrid_api_source.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ async def _check_battery_request(
164164
_logger.error(err)
165165
raise ValueError(err)
166166
if comp_id not in self.comp_data_receivers:
167-
self.comp_data_receivers[
168-
comp_id
169-
] = await connection_manager.get().api_client.battery_data(comp_id)
167+
self.comp_data_receivers[comp_id] = (
168+
await connection_manager.get().api_client.battery_data(comp_id)
169+
)
170170

171171
async def _check_ev_charger_request(
172172
self,
@@ -189,9 +189,9 @@ async def _check_ev_charger_request(
189189
_logger.error(err)
190190
raise ValueError(err)
191191
if comp_id not in self.comp_data_receivers:
192-
self.comp_data_receivers[
193-
comp_id
194-
] = await connection_manager.get().api_client.ev_charger_data(comp_id)
192+
self.comp_data_receivers[comp_id] = (
193+
await connection_manager.get().api_client.ev_charger_data(comp_id)
194+
)
195195

196196
async def _check_inverter_request(
197197
self,
@@ -214,9 +214,9 @@ async def _check_inverter_request(
214214
_logger.error(err)
215215
raise ValueError(err)
216216
if comp_id not in self.comp_data_receivers:
217-
self.comp_data_receivers[
218-
comp_id
219-
] = await connection_manager.get().api_client.inverter_data(comp_id)
217+
self.comp_data_receivers[comp_id] = (
218+
await connection_manager.get().api_client.inverter_data(comp_id)
219+
)
220220

221221
async def _check_meter_request(
222222
self,
@@ -239,9 +239,9 @@ async def _check_meter_request(
239239
_logger.error(err)
240240
raise ValueError(err)
241241
if comp_id not in self.comp_data_receivers:
242-
self.comp_data_receivers[
243-
comp_id
244-
] = await connection_manager.get().api_client.meter_data(comp_id)
242+
self.comp_data_receivers[comp_id] = (
243+
await connection_manager.get().api_client.meter_data(comp_id)
244+
)
245245

246246
async def _check_requested_component_and_metrics(
247247
self,

src/frequenz/sdk/actor/_power_managing/_power_managing_actor.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ async def _run(self) -> None:
221221
).new_sender()
222222
}
223223
elif priority not in self._subscriptions[component_ids]:
224-
self._subscriptions[component_ids][
225-
priority
226-
] = self._channel_registry.get_or_create(
227-
_Report, sub.get_channel_name()
228-
).new_sender()
224+
self._subscriptions[component_ids][priority] = (
225+
self._channel_registry.get_or_create(
226+
_Report, sub.get_channel_name()
227+
).new_sender()
228+
)
229229

230230
if sub.component_ids not in self._bound_tracker_tasks:
231231
self._add_bounds_tracker(sub.component_ids)
@@ -236,9 +236,9 @@ async def _run(self) -> None:
236236
)
237237

238238
result = selected.value
239-
self._distribution_results[
240-
frozenset(result.request.component_ids)
241-
] = result
239+
self._distribution_results[frozenset(result.request.component_ids)] = (
240+
result
241+
)
242242
if not isinstance(result, power_distributing.Success):
243243
_logger.warning(
244244
"PowerManagingActor: PowerDistributing failed: %s", result

src/frequenz/sdk/actor/_power_managing/_sorted_set.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
class _Comparable(typing.Protocol):
1919
@abc.abstractmethod
20-
def __lt__(self: _C, other: _C, /) -> bool:
21-
...
20+
def __lt__(self: _C, other: _C, /) -> bool: ...
2221

2322

2423
_ComparableT = typing.TypeVar("_ComparableT", bound=_Comparable)

src/frequenz/sdk/actor/_resampling.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ def __init__( # pylint: disable=too-many-arguments
4949
"""
5050
super().__init__(name=name)
5151
self._channel_registry: ChannelRegistry = channel_registry
52-
self._data_sourcing_request_sender: Sender[
53-
ComponentMetricRequest
54-
] = data_sourcing_request_sender
55-
self._resampling_request_receiver: Receiver[
56-
ComponentMetricRequest
57-
] = resampling_request_receiver
52+
self._data_sourcing_request_sender: Sender[ComponentMetricRequest] = (
53+
data_sourcing_request_sender
54+
)
55+
self._resampling_request_receiver: Receiver[ComponentMetricRequest] = (
56+
resampling_request_receiver
57+
)
5858
self._resampler: Resampler = Resampler(config)
5959
self._active_req_channels: set[str] = set()
6060

src/frequenz/sdk/actor/power_distributing/_distribution_algorithm/_battery_distribution_algorithm.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -790,12 +790,12 @@ def _inclusion_exclusion_bounds(
790790
excl_bounds: dict[int, float] = {}
791791
for battery, inverters in components:
792792
if supply:
793-
excl_bounds[
794-
battery.component_id
795-
] = -battery.power_bounds.exclusion_lower
796-
incl_bounds[
797-
battery.component_id
798-
] = -battery.power_bounds.inclusion_lower
793+
excl_bounds[battery.component_id] = (
794+
-battery.power_bounds.exclusion_lower
795+
)
796+
incl_bounds[battery.component_id] = (
797+
-battery.power_bounds.inclusion_lower
798+
)
799799
else:
800800
excl_bounds[battery.component_id] = battery.power_bounds.exclusion_upper
801801
incl_bounds[battery.component_id] = battery.power_bounds.inclusion_upper
@@ -806,16 +806,16 @@ def _inclusion_exclusion_bounds(
806806
inverter.active_power_inclusion_lower_bound,
807807
battery.power_bounds.inclusion_lower,
808808
)
809-
excl_bounds[
810-
inverter.component_id
811-
] = -inverter.active_power_exclusion_lower_bound
809+
excl_bounds[inverter.component_id] = (
810+
-inverter.active_power_exclusion_lower_bound
811+
)
812812

813813
else:
814814
incl_bounds[inverter.component_id] = min(
815815
inverter.active_power_inclusion_upper_bound,
816816
battery.power_bounds.inclusion_upper,
817817
)
818-
excl_bounds[
819-
inverter.component_id
820-
] = inverter.active_power_exclusion_upper_bound
818+
excl_bounds[inverter.component_id] = (
819+
inverter.active_power_exclusion_upper_bound
820+
)
821821
return incl_bounds, excl_bounds

src/frequenz/sdk/timeseries/_base_types.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,10 @@ def __iter__(self) -> Iterator[QuantityT | None]:
6565
yield self.value_p3
6666

6767
@overload
68-
def max(self, default: QuantityT) -> QuantityT:
69-
...
68+
def max(self, default: QuantityT) -> QuantityT: ...
7069

7170
@overload
72-
def max(self, default: None = None) -> QuantityT | None:
73-
...
71+
def max(self, default: None = None) -> QuantityT | None: ...
7472

7573
def max(self, default: QuantityT | None = None) -> QuantityT | None:
7674
"""Return the max value among all phases, or default if they are all `None`.
@@ -90,12 +88,10 @@ def max(self, default: QuantityT | None = None) -> QuantityT | None:
9088
return value
9189

9290
@overload
93-
def min(self, default: QuantityT) -> QuantityT:
94-
...
91+
def min(self, default: QuantityT) -> QuantityT: ...
9592

9693
@overload
97-
def min(self, default: None = None) -> QuantityT | None:
98-
...
94+
def min(self, default: None = None) -> QuantityT | None: ...
9995

10096
def min(self, default: QuantityT | None = None) -> QuantityT | None:
10197
"""Return the min value among all phases, or default if they are all `None`.

src/frequenz/sdk/timeseries/_grid_frequency.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def __init__(
6969
),
7070
)
7171

72-
self._request_sender: Sender[
73-
ComponentMetricRequest
74-
] = data_sourcing_request_sender
72+
self._request_sender: Sender[ComponentMetricRequest] = (
73+
data_sourcing_request_sender
74+
)
7575
self._channel_registry: ChannelRegistry = channel_registry
7676
self._source_component: Component = source
7777
self._component_metric_request: ComponentMetricRequest = create_request(
@@ -107,9 +107,13 @@ def new_receiver(self) -> Receiver[Sample[Frequency]]:
107107
)
108108

109109
return receiver.map(
110-
lambda sample: Sample[Frequency](sample.timestamp, None)
111-
if sample.value is None or sample.value.isnan()
112-
else Sample(sample.timestamp, Frequency.from_hertz(sample.value.base_value))
110+
lambda sample: (
111+
Sample[Frequency](sample.timestamp, None)
112+
if sample.value is None or sample.value.isnan()
113+
else Sample(
114+
sample.timestamp, Frequency.from_hertz(sample.value.base_value)
115+
)
116+
)
113117
)
114118

115119
async def _send_request(self) -> None:

src/frequenz/sdk/timeseries/_voltage_streamer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ async def _send_request(self) -> None:
178178
msg = Sample3Phase(
179179
phases[0].timestamp,
180180
*map(
181-
lambda p: Voltage.from_volts(p.value.base_value)
182-
if p.value
183-
else None,
181+
lambda p: (
182+
Voltage.from_volts(p.value.base_value) if p.value else None
183+
),
184184
phases,
185185
),
186186
)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,10 @@ def power_status(self) -> ReceiverFetcher[BatteryPoolReport]:
385385
priority=self._priority,
386386
component_ids=self._battery_pool._batteries,
387387
)
388-
self._battery_pool._power_bounds_subs[
389-
sub.get_channel_name()
390-
] = asyncio.create_task(
391-
self._battery_pool._power_manager_bounds_subscription_sender.send(sub)
388+
self._battery_pool._power_bounds_subs[sub.get_channel_name()] = (
389+
asyncio.create_task(
390+
self._battery_pool._power_manager_bounds_subscription_sender.send(sub)
391+
)
392392
)
393393
channel = self._battery_pool._channel_registry.get_or_create(
394394
_power_managing._Report, sub.get_channel_name()

0 commit comments

Comments
 (0)