Skip to content
Merged
Changes from 4 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
14 changes: 14 additions & 0 deletions homeassistant/components/knx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
CONFIG_SCHEMA = vol.Schema(
{
DOMAIN: vol.All(
# deprecated since 2021.2
cv.deprecated(CONF_KNX_FIRE_EVENT),
cv.deprecated("fire_event_filter", replacement_key=CONF_KNX_EVENT_FILTER),
vol.Schema(
Expand Down Expand Up @@ -229,6 +230,19 @@ async def async_setup(hass, config):
"https://www.home-assistant.io/blog/2020/09/17/release-115/#breaking-changes"
)

# deprecation warning since 2021.3
if CONF_KNX_CONFIG in config[DOMAIN]:
config_file_deprecation_warning = (
f"The 'config_file' option will soon be deprecated. Please replace it with Home Assistant config schema "
f"directly in `configuration.yaml` (see https://www.home-assistant.io/integrations/knx/). \n"
f"An online configuration converter tool for your `{config[DOMAIN][CONF_KNX_CONFIG]}` is available at https://xknx.io/config-converter/"
)
_LOGGER.warning(config_file_deprecation_warning)
hass.components.persistent_notification.async_create(
config_file_deprecation_warning,
title="KNX",
)
Comment thread
farmio marked this conversation as resolved.
Outdated

hass.services.async_register(
DOMAIN,
SERVICE_KNX_SEND,
Expand Down