From 4ca7b8569bb1eed6b7590464fe7612c8ec376c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 27 Sep 2020 19:02:44 +0300 Subject: [PATCH] Remove pre-0.102 Huawei LTE setup noop warnings (#40654) --- homeassistant/components/huawei_lte/device_tracker.py | 9 --------- homeassistant/components/huawei_lte/notify.py | 4 ---- homeassistant/components/huawei_lte/sensor.py | 8 -------- 3 files changed, 21 deletions(-) diff --git a/homeassistant/components/huawei_lte/device_tracker.py b/homeassistant/components/huawei_lte/device_tracker.py index 54e8f318cf6..80578fce7d9 100644 --- a/homeassistant/components/huawei_lte/device_tracker.py +++ b/homeassistant/components/huawei_lte/device_tracker.py @@ -153,12 +153,3 @@ class HuaweiLteScannerEntity(HuaweiLteBaseEntity, ScannerEntity): self._device_state_attributes = { _better_snakecase(k): v for k, v in host.items() if k != "HostName" } - - -def get_scanner(*args, **kwargs): # pylint: disable=useless-return - """Old no longer used way to set up Huawei LTE device tracker.""" - _LOGGER.warning( - "Loading and configuring as a platform is no longer supported or " - "required, convert to enabling/disabling available entities" - ) - return None diff --git a/homeassistant/components/huawei_lte/notify.py b/homeassistant/components/huawei_lte/notify.py index 91cc8864eb0..375ced911c8 100644 --- a/homeassistant/components/huawei_lte/notify.py +++ b/homeassistant/components/huawei_lte/notify.py @@ -19,10 +19,6 @@ _LOGGER = logging.getLogger(__name__) async def async_get_service(hass, config, discovery_info=None): """Get the notification service.""" if discovery_info is None: - _LOGGER.warning( - "Loading as a platform is no longer supported, convert to use " - "config entries or the huawei_lte component" - ) return None router = hass.data[DOMAIN].routers[discovery_info[CONF_URL]] diff --git a/homeassistant/components/huawei_lte/sensor.py b/homeassistant/components/huawei_lte/sensor.py index ccdeb47ee88..7fe1a7c1571 100644 --- a/homeassistant/components/huawei_lte/sensor.py +++ b/homeassistant/components/huawei_lte/sensor.py @@ -420,11 +420,3 @@ class HuaweiLteSensor(HuaweiLteBaseEntity): formatter = format_default self._state, self._unit = formatter(value) - - -async def async_setup_platform(*args, **kwargs): - """Old no longer used way to set up Huawei LTE sensors.""" - _LOGGER.warning( - "Loading and configuring as a platform is no longer supported or " - "required, convert to enabling/disabling available entities" - )