How to add responsible component to logbook?

I’m trying to see how to ensure that a component that changes entity state is identified in the logbook.

More concretely, in the image below, a custom component has turned the light off (in the red box). How do I make sure the component’s name appears correctly, similar to the Homekit example higher up in the screenshot? I thought perhaps it was context passed as part of async_call but that seems incorrect.

(I’m trying to put together a PR for the presence_simulation component and the piece where it actually does the entity update action is here.)