Skip to content
Merged
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
10 changes: 10 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,15 @@ 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]:
_LOGGER.warning(
"The 'config_file' option is deprecated. Please replace it with Home Assistant config schema "
"directly in `configuration.yaml` (see https://www.home-assistant.io/integrations/knx/). \n"
"An online configuration converter tool for your `%s` is available at https://xknx.io/config-converter/",
config[DOMAIN][CONF_KNX_CONFIG],
)

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