Skip to content

Commit

Permalink
Make zone key upper case in latest_carbon_intensity_by_country_code (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKTORVAV99 authored Feb 6, 2024
1 parent a3dcb9c commit 935b657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioelectricitymaps/electricitymaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def latest_carbon_intensity_by_country_code(
code: str,
) -> CarbonIntensityResponse:
"""Get carbon intensity by country code."""
result = await self._get(ApiEndpoints.CARBON_INTENSITY, {"zone": code})
result = await self._get(ApiEndpoints.CARBON_INTENSITY, {"zone": code.upper()})
return CarbonIntensityResponse.from_json(result)

async def zones(self) -> dict[str, Zone]:
Expand Down

0 comments on commit 935b657

Please sign in to comment.