Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update meteofrance-api to 1.4.0 #141490

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/meteo_france/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ async def _async_update_data_alert() -> CurrentPhenomenons:
"""Fetch data from API endpoint."""
assert isinstance(department, str)
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(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/meteo_france/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"documentation": "https://www.home-assistant.io/integrations/meteo_france",
"iot_class": "cloud_polling",
"loggers": ["meteofrance_api"],
"requirements": ["meteofrance-api==1.3.0"]
"requirements": ["meteofrance-api==1.4.0"]
}
4 changes: 2 additions & 2 deletions homeassistant/components/meteo_france/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from meteofrance_api.helpers import (
get_warning_text_status_from_indice_color,
readeable_phenomenoms_dict,
readable_phenomenons_dict,
)
from meteofrance_api.model.forecast import Forecast
from meteofrance_api.model.rain import Rain
Expand Down Expand Up @@ -336,7 +336,7 @@ def native_value(self) -> str | None:
def extra_state_attributes(self):
"""Return the state attributes."""
return {
**readeable_phenomenoms_dict(self.coordinator.data.phenomenons_max_colors),
**readable_phenomenons_dict(self.coordinator.data.phenomenons_max_colors),
}


Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements_test_all.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/components/meteo_france/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def patch_requests():
mock_data.get_rain.return_value = Rain(
load_json_object_fixture("raw_rain.json", DOMAIN)
)
mock_data.get_warning_current_phenomenoms.return_value = CurrentPhenomenons(
load_json_object_fixture("raw_warning_current_phenomenoms.json", DOMAIN)
mock_data.get_warning_current_phenomenons.return_value = CurrentPhenomenons(
load_json_object_fixture("raw_warning_current_phenomenons.json", DOMAIN)
)
yield mock_data

Expand Down