Bump aioelectricitymaps to v0.1.6 (#106932)
This commit is contained in:
parent
938c32d35e
commit
32b6e4d5de
4 changed files with 5 additions and 5 deletions
|
@ -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),
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue