diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 5364f55..850beb8 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -7,6 +7,7 @@ explicitly configured. ## Upgrading +* Update assets client to v0.3.0. ## New Features diff --git a/pyproject.toml b/pyproject.toml index 637c9c7..8f6b62c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "asyncclick >= 8.3.0.4, < 9", "typing-extensions >= 4.14.1, < 5", "frequenz-microgrid-component-graph >= 0.3.4, < 0.4", - "frequenz-client-assets >= 0.2.0, < 0.3", + "frequenz-client-assets >= 0.3.0, < 0.4", ] dynamic = ["version"] diff --git a/src/frequenz/gridpool/_graph_generator.py b/src/frequenz/gridpool/_graph_generator.py index 69db5f2..b309ee3 100644 --- a/src/frequenz/gridpool/_graph_generator.py +++ b/src/frequenz/gridpool/_graph_generator.py @@ -3,8 +3,6 @@ """Formula generation from assets API component/connection configurations.""" -from typing import cast - from frequenz.client.assets import AssetsApiClient from frequenz.client.assets.electrical_component import ( ComponentConnection, @@ -61,6 +59,6 @@ async def get_component_graph( graph = ComponentGraph[ ElectricalComponent, ComponentConnection, ElectricalComponentId - ](components, cast(list[ComponentConnection], connections)) + ](components, connections) return graph