Skip to content

Commit

Permalink
meteo_france add yaml config removal issue (home-assistant#97428)
Browse files Browse the repository at this point in the history
meteo_france yaml removal issue
  • Loading branch information
gjohansson-ST authored Jul 28, 2023
1 parent 1b10c44 commit cd311f4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion homeassistant/components/meteo_france/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE
from homeassistant.core import HomeAssistant
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from homeassistant.helpers.typing import ConfigType
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator

Expand Down Expand Up @@ -52,6 +53,20 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
DOMAIN, context={"source": SOURCE_IMPORT}, data=city_conf
)
)
async_create_issue(
hass,
HOMEASSISTANT_DOMAIN,
f"deprecated_yaml_{DOMAIN}",
breaks_in_ha_version="2024.2.0",
is_fixable=False,
issue_domain=DOMAIN,
severity=IssueSeverity.WARNING,
translation_key="deprecated_yaml",
translation_placeholders={
"domain": DOMAIN,
"integration_title": "Météo-France",
},
)

return True

Expand Down

0 comments on commit cd311f4

Please sign in to comment.