Deprecate Magicseaweed (#85527)
This commit is contained in:
parent
9eb06fd59d
commit
0a8380cbe1
3 changed files with 31 additions and 0 deletions
|
@ -16,6 +16,7 @@ from homeassistant.const import CONF_API_KEY, CONF_MONITORED_CONDITIONS, CONF_NA
|
|||
from homeassistant.core import HomeAssistant
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
from homeassistant.helpers.issue_registry import IssueSeverity, create_issue
|
||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||
from homeassistant.util import Throttle
|
||||
import homeassistant.util.dt as dt_util
|
||||
|
@ -80,6 +81,20 @@ def setup_platform(
|
|||
discovery_info: DiscoveryInfoType | None = None,
|
||||
) -> None:
|
||||
"""Set up the Magicseaweed sensor."""
|
||||
create_issue(
|
||||
hass,
|
||||
"magicseaweed",
|
||||
"pending_removal",
|
||||
breaks_in_ha_version="2023.3.0",
|
||||
is_fixable=False,
|
||||
severity=IssueSeverity.WARNING,
|
||||
translation_key="pending_removal",
|
||||
)
|
||||
_LOGGER.warning(
|
||||
"The Magicseaweed integration is deprecated"
|
||||
" and will be removed in Home Assistant 2023.3"
|
||||
)
|
||||
|
||||
name = config.get(CONF_NAME)
|
||||
spot_id = config[CONF_SPOT_ID]
|
||||
api_key = config[CONF_API_KEY]
|
||||
|
|
8
homeassistant/components/magicseaweed/strings.json
Normal file
8
homeassistant/components/magicseaweed/strings.json
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"issues": {
|
||||
"pending_removal": {
|
||||
"title": "The Magicseaweed integration is being removed",
|
||||
"description": "The Magicseaweed integration is pending removal from Home Assistant and will no longer be available as of Home Assistant 2023.3.\n\nRemove the YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue."
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"issues": {
|
||||
"pending_removal": {
|
||||
"description": "The Magicseaweed integration is pending removal from Home Assistant and will no longer be available as of Home Assistant 2023.3.\n\nRemove the YAML configuration from your configuration.yaml file and restart Home Assistant to fix this issue.",
|
||||
"title": "The Magicseaweed integration is being removed"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue