mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Remove pre-0.102 Huawei LTE setup noop warnings (#40654)
This commit is contained in:
parent
c63cd63c1b
commit
4ca7b8569b
@ -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
|
||||
|
@ -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]]
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user