Move Phone Modem reject call deprecation warning (#67223)

pull/67227/head
Franck Nijhof 2022-02-25 10:57:29 +01:00 committed by GitHub
parent 684f01f466
commit 0bd25a192d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 6 deletions

View File

@ -44,13 +44,7 @@ async def async_setup_entry(
)
platform = entity_platform.async_get_current_platform()
platform.async_register_entity_service(SERVICE_REJECT_CALL, {}, "async_reject_call")
_LOGGER.warning(
"Calling reject_call service is deprecated and will be removed after 2022.4; "
"A new button entity is now available with the same function "
"and replaces the existing service"
)
class ModemCalleridSensor(SensorEntity):
@ -94,4 +88,9 @@ class ModemCalleridSensor(SensorEntity):
async def async_reject_call(self) -> None:
"""Reject Incoming Call."""
_LOGGER.warning(
"Calling reject_call service is deprecated and will be removed after 2022.4; "
"A new button entity is now available with the same function "
"and replaces the existing service"
)
await self.api.reject_call(self.device)