mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
Warn users if KNX has no devices configured (#39899)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
1720b71d62
commit
3d4913348a
@ -148,6 +148,12 @@ async def async_setup(hass, config):
|
|||||||
discovery.async_load_platform(hass, platform.value, DOMAIN, {}, config)
|
discovery.async_load_platform(hass, platform.value, DOMAIN, {}, config)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not hass.data[DATA_KNX].xknx.devices:
|
||||||
|
_LOGGER.warning(
|
||||||
|
"No KNX devices are configured. Please read "
|
||||||
|
"https://www.home-assistant.io/blog/2020/09/17/release-115/#breaking-changes"
|
||||||
|
)
|
||||||
|
|
||||||
hass.services.async_register(
|
hass.services.async_register(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
SERVICE_KNX_SEND,
|
SERVICE_KNX_SEND,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user