diff --git a/pyproject.toml b/pyproject.toml index 3c6e235..8d5feda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -84,7 +84,7 @@ dev-mypy = [ # For checking the noxfile, docs/ script, and tests "frequenz-client-marketmetering[cli,dev-mkdocs,dev-noxfile,dev-pytest]", "grpc-stubs == 1.53.0.6", - "types-protobuf == 6.32.1.20250918", + "types-protobuf == 6.32.1.20251210", ] dev-noxfile = ["nox == 2025.10.16", "frequenz-repo-config[lib] == 0.13.8"] dev-pylint = [ diff --git a/src/frequenz/client/marketmetering/_client.py b/src/frequenz/client/marketmetering/_client.py index 1817774..e269fa0 100644 --- a/src/frequenz/client/marketmetering/_client.py +++ b/src/frequenz/client/marketmetering/_client.py @@ -201,7 +201,7 @@ async def stream_samples( """ # Build the request request = pb.ReceiveMarketLocationSamplesStreamRequest( - market_location_list=[ml.to_protobuf() for ml in market_locations], + market_location_refs=[ml.to_protobuf() for ml in market_locations], directions=[d.value for d in directions], metric_types=[mt.value for mt in metric_types], ) @@ -314,7 +314,7 @@ def _get_stream( if broadcaster is None: # Build the request request = pb.ReceiveMarketLocationSamplesStreamRequest( - market_location_list=[ml.to_protobuf() for ml in market_locations], + market_location_refs=[ml.to_protobuf() for ml in market_locations], directions=[d.value for d in directions], metric_types=[mt.value for mt in metric_types], ) diff --git a/src/frequenz/client/marketmetering/types.py b/src/frequenz/client/marketmetering/types.py index b12745d..a7ab156 100644 --- a/src/frequenz/client/marketmetering/types.py +++ b/src/frequenz/client/marketmetering/types.py @@ -40,22 +40,22 @@ class MarketArea(Enum): class MarketLocationIdType(Enum): """Type of external market identifier.""" - UNSPECIFIED = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_UNSPECIFIED + UNSPECIFIED = pb.MARKET_LOCATION_ID_TYPE_UNSPECIFIED """Unspecified identifier type.""" - MALO_ID = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_MALO_ID + MALO_ID = pb.MARKET_LOCATION_ID_TYPE_MALO_ID """Germany – Marktlokations-ID (MaLo-ID).""" - MPAN = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_MPAN + MPAN = pb.MARKET_LOCATION_ID_TYPE_MPAN """United Kingdom – Meter Point Administration Number.""" - ESI_ID = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_ESI_ID + ESI_ID = pb.MARKET_LOCATION_ID_TYPE_ESI_ID """United States – Electric Service Identifier (ESI ID).""" - NMI = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_NMI + NMI = pb.MARKET_LOCATION_ID_TYPE_NMI """Australia – National Metering Identifier.""" - OTHER = pb.OFFICIAL_MARKET_LOCATION_ID_TYPE_OTHER + OTHER = pb.MARKET_LOCATION_ID_TYPE_OTHER """Generic meter identifier for markets not modeled explicitly."""