mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Update meteofrance-api to 1.4.0 (#141490)
This commit is contained in:
parent
eb3cb0e0c7
commit
222d89a84c
@ -57,7 +57,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
"""Fetch data from API endpoint."""
|
"""Fetch data from API endpoint."""
|
||||||
assert isinstance(department, str)
|
assert isinstance(department, str)
|
||||||
return await hass.async_add_executor_job(
|
return await hass.async_add_executor_job(
|
||||||
client.get_warning_current_phenomenoms, department, 0, True
|
client.get_warning_current_phenomenons, department, 0, True
|
||||||
)
|
)
|
||||||
|
|
||||||
coordinator_forecast = DataUpdateCoordinator(
|
coordinator_forecast = DataUpdateCoordinator(
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/meteo_france",
|
"documentation": "https://www.home-assistant.io/integrations/meteo_france",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["meteofrance_api"],
|
"loggers": ["meteofrance_api"],
|
||||||
"requirements": ["meteofrance-api==1.3.0"]
|
"requirements": ["meteofrance-api==1.4.0"]
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ from typing import Any
|
|||||||
|
|
||||||
from meteofrance_api.helpers import (
|
from meteofrance_api.helpers import (
|
||||||
get_warning_text_status_from_indice_color,
|
get_warning_text_status_from_indice_color,
|
||||||
readeable_phenomenoms_dict,
|
readable_phenomenons_dict,
|
||||||
)
|
)
|
||||||
from meteofrance_api.model.forecast import Forecast
|
from meteofrance_api.model.forecast import Forecast
|
||||||
from meteofrance_api.model.rain import Rain
|
from meteofrance_api.model.rain import Rain
|
||||||
@ -336,7 +336,7 @@ class MeteoFranceAlertSensor(MeteoFranceSensor[CurrentPhenomenons]):
|
|||||||
def extra_state_attributes(self):
|
def extra_state_attributes(self):
|
||||||
"""Return the state attributes."""
|
"""Return the state attributes."""
|
||||||
return {
|
return {
|
||||||
**readeable_phenomenoms_dict(self.coordinator.data.phenomenons_max_colors),
|
**readable_phenomenons_dict(self.coordinator.data.phenomenons_max_colors),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
2
requirements_all.txt
generated
2
requirements_all.txt
generated
@ -1405,7 +1405,7 @@ messagebird==1.2.0
|
|||||||
meteoalertapi==0.3.1
|
meteoalertapi==0.3.1
|
||||||
|
|
||||||
# homeassistant.components.meteo_france
|
# homeassistant.components.meteo_france
|
||||||
meteofrance-api==1.3.0
|
meteofrance-api==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.mfi
|
# homeassistant.components.mfi
|
||||||
mficlient==0.5.0
|
mficlient==0.5.0
|
||||||
|
2
requirements_test_all.txt
generated
2
requirements_test_all.txt
generated
@ -1175,7 +1175,7 @@ medcom-ble==0.1.1
|
|||||||
melnor-bluetooth==0.0.25
|
melnor-bluetooth==0.0.25
|
||||||
|
|
||||||
# homeassistant.components.meteo_france
|
# homeassistant.components.meteo_france
|
||||||
meteofrance-api==1.3.0
|
meteofrance-api==1.4.0
|
||||||
|
|
||||||
# homeassistant.components.mfi
|
# homeassistant.components.mfi
|
||||||
mficlient==0.5.0
|
mficlient==0.5.0
|
||||||
|
@ -24,8 +24,8 @@ def patch_requests():
|
|||||||
mock_data.get_rain.return_value = Rain(
|
mock_data.get_rain.return_value = Rain(
|
||||||
load_json_object_fixture("raw_rain.json", DOMAIN)
|
load_json_object_fixture("raw_rain.json", DOMAIN)
|
||||||
)
|
)
|
||||||
mock_data.get_warning_current_phenomenoms.return_value = CurrentPhenomenons(
|
mock_data.get_warning_current_phenomenons.return_value = CurrentPhenomenons(
|
||||||
load_json_object_fixture("raw_warning_current_phenomenoms.json", DOMAIN)
|
load_json_object_fixture("raw_warning_current_phenomenons.json", DOMAIN)
|
||||||
)
|
)
|
||||||
yield mock_data
|
yield mock_data
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user