Skip to content

Commit

Permalink
GDACS add yaml config issue (home-assistant#97424)
Browse files Browse the repository at this point in the history
gdacs remove yaml issue
  • Loading branch information
gjohansson-ST authored Jul 29, 2023
1 parent 0a56361 commit 7800388
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion homeassistant/components/gdacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
CONF_SCAN_INTERVAL,
UnitOfLength,
)
from homeassistant.core import HomeAssistant, callback
from homeassistant.core import DOMAIN as HOMEASSISTANT_DOMAIN, HomeAssistant, callback
from homeassistant.helpers import aiohttp_client, config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.event import async_track_time_interval
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
from homeassistant.helpers.typing import ConfigType
from homeassistant.util.unit_conversion import DistanceConverter
from homeassistant.util.unit_system import US_CUSTOMARY_SYSTEM
Expand Down Expand Up @@ -77,6 +78,20 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
},
)
)
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": "Global Disaster Alert and Coordination System",
},
)

return True

Expand Down

0 comments on commit 7800388

Please sign in to comment.