Bump aioelectricitymaps to v0.1.6 (#106932)

pull/106938/head
Jan-Philipp Benecke 2024-01-03 08:52:41 +01:00 committed by GitHub
parent 938c32d35e
commit 32b6e4d5de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -18,11 +18,11 @@ async def fetch_latest_carbon_intensity(
) -> CarbonIntensityResponse:
"""Fetch the latest carbon intensity based on country code or location coordinates."""
if CONF_COUNTRY_CODE in config:
return await em.latest_carbon_intensity_by_country_code( # type: ignore[no-any-return]
return await em.latest_carbon_intensity_by_country_code(
code=config[CONF_COUNTRY_CODE]
)
return await em.latest_carbon_intensity_by_coordinates( # type: ignore[no-any-return]
return await em.latest_carbon_intensity_by_coordinates(
lat=config.get(CONF_LATITUDE, hass.config.latitude),
lon=config.get(CONF_LONGITUDE, hass.config.longitude),
)

View File

@ -7,5 +7,5 @@
"integration_type": "service",
"iot_class": "cloud_polling",
"loggers": ["aioelectricitymaps"],
"requirements": ["aioelectricitymaps==0.1.5"]
"requirements": ["aioelectricitymaps==0.1.6"]
}

View File

@ -233,7 +233,7 @@ aioeagle==1.1.0
aioecowitt==2023.5.0
# homeassistant.components.co2signal
aioelectricitymaps==0.1.5
aioelectricitymaps==0.1.6
# homeassistant.components.emonitor
aioemonitor==1.0.5

View File

@ -212,7 +212,7 @@ aioeagle==1.1.0
aioecowitt==2023.5.0
# homeassistant.components.co2signal
aioelectricitymaps==0.1.5
aioelectricitymaps==0.1.6
# homeassistant.components.emonitor
aioemonitor==1.0.5