add a deprecation warning for tplink device_tracker (#24236)

* add a deprecation warning for tplink device_tracker

* reword the warning a bit
This commit is contained in:
Teemu R 2019-06-01 02:00:10 -04:00 committed by Paulus Schoutsen
parent e6a54013dc
commit 3076866ec6

View File

@ -41,6 +41,12 @@ def get_scanner(hass, config):
should be gradually migrated in the pypi package
"""
_LOGGER.warning("TP-Link device tracker is unmaintained and will be "
"removed in the future releases if no maintainer is "
"found. If you have interest in this integration, "
"feel free to create a pull request to move this code "
"to a new 'tplink_router' integration and refactoring "
"the device-specific parts to the tplink library")
for cls in [
TplinkDeviceScanner, Tplink5DeviceScanner, Tplink4DeviceScanner,
Tplink3DeviceScanner, Tplink2DeviceScanner, Tplink1DeviceScanner