Deprecates linksys_ap integration (ADR-0004) (#25804)

This commit is contained in:
Franck Nijhof 2019-08-09 16:47:08 +02:00 committed by GitHub
parent 4349b8640e
commit e47ed0e182
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,6 +30,12 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def get_scanner(hass, config):
"""Validate the configuration and return a Linksys AP scanner."""
_LOGGER.warning(
"The linksys_ap integration is deprecated and will be removed "
"in Home Assistant 0.100.0. For more information see ADR-0004:"
"https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md"
)
try:
return LinksysAPDeviceScanner(config[DOMAIN])
except ConnectionError: