async def METHOD_NAME(self) -> None:
    """Attach the entity to same device as the source entity."""
    entity_reg = er.async_get(self.hass)
    entity_entry = entity_reg.async_get(self.entity_id)
    if entity_entry is None or not hasattr(self, "source_device_id"):
        return
    device_id: str = getattr(self, "source_device_id")  # noqa: B009
    device_reg = dr.async_get(self.hass)
    device_entry = device_reg.async_get(device_id)
    if (
        not device_entry or device_entry.id == entity_entry.device_id
    ):  # pragma: no cover
        return
    _LOGGER.debug("Binding %s to device %s", self.entity_id, device_id)
    entity_reg.async_update_entity(self.entity_id, device_id=device_id)