Skip to content

Commit 4681c2b

Browse files
authored
Update assets client to v0.3.0 (#54)
Supports raising in case there is a problem with the component graph.
2 parents 8a5e259 + 362de68 commit 4681c2b

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ explicitly configured.
77

88
## Upgrading
99

10+
* Update assets client to v0.3.0.
1011

1112
## New Features
1213

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ dependencies = [
3030
"asyncclick >= 8.3.0.4, < 9",
3131
"typing-extensions >= 4.14.1, < 5",
3232
"frequenz-microgrid-component-graph >= 0.3.4, < 0.4",
33-
"frequenz-client-assets >= 0.2.0, < 0.3",
33+
"frequenz-client-assets >= 0.3.0, < 0.4",
3434
]
3535
dynamic = ["version"]
3636

src/frequenz/gridpool/_graph_generator.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
"""Formula generation from assets API component/connection configurations."""
55

6-
from typing import cast
7-
86
from frequenz.client.assets import AssetsApiClient
97
from frequenz.client.assets.electrical_component import (
108
ComponentConnection,
@@ -61,6 +59,6 @@ async def get_component_graph(
6159

6260
graph = ComponentGraph[
6361
ElectricalComponent, ComponentConnection, ElectricalComponentId
64-
](components, cast(list[ComponentConnection], connections))
62+
](components, connections)
6563

6664
return graph

0 commit comments

Comments
 (0)