async def _async_service_force_device_availability(hass: HomeAssistant, service: ServiceCall) -> None:
    """Service to force device availability on a Homematic(IP) Local devices."""
    if hm_device := _async_get_hm_device_by_service_data(hass=hass, service=service):
        hm_device.set_forced_availability(forced_availability=ForcedDeviceAvailability.FORCE_TRUE)
        _LOGGER.debug(
            "Called force_device_availability: %s, %s",
            hm_device.name,
            hm_device.address,
        )
Service to force device availability on a Homematic(IP) Local devices.
custom_components/homematicip_local/services.py