Skip to content

Commit a6c4d75

Browse files
committed
Actually use the declared URL in the example
The URL (previously HOST/PORT) was defined but then the URL to connect to was hardcoded in `initialize()`. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b9f6dd4 commit a6c4d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/battery_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async def main() -> None:
2525
logging.getLogger("hpack.hpack").setLevel(logging.INFO)
2626

2727
await microgrid.initialize(
28-
"grpc://microgrid.sandbox.api.frequenz.io:62060",
28+
MICROGRID_API_URL,
2929
resampler_config=ResamplerConfig(resampling_period=timedelta(seconds=1.0)),
3030
)
3131

0 commit comments

Comments
 (0)