Remove pre-0.102 Huawei LTE setup noop warnings (#40654)

This commit is contained in:
Ville Skyttä 2020-09-27 19:02:44 +03:00 committed by GitHub
parent c63cd63c1b
commit 4ca7b8569b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 21 deletions

View File

@ -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

View File

@ -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]]

View File

@ -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"
)