Bump aioelectricitymaps to v0.1.6 (#106932)

This commit is contained in:
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: ) -> CarbonIntensityResponse:
"""Fetch the latest carbon intensity based on country code or location coordinates.""" """Fetch the latest carbon intensity based on country code or location coordinates."""
if CONF_COUNTRY_CODE in config: 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] 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), lat=config.get(CONF_LATITUDE, hass.config.latitude),
lon=config.get(CONF_LONGITUDE, hass.config.longitude), lon=config.get(CONF_LONGITUDE, hass.config.longitude),
) )

View file

@ -7,5 +7,5 @@
"integration_type": "service", "integration_type": "service",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["aioelectricitymaps"], "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 aioecowitt==2023.5.0
# homeassistant.components.co2signal # homeassistant.components.co2signal
aioelectricitymaps==0.1.5 aioelectricitymaps==0.1.6
# homeassistant.components.emonitor # homeassistant.components.emonitor
aioemonitor==1.0.5 aioemonitor==1.0.5

View file

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