How to customize the settings screen of a custom entity

I created a sensor with the template integration, which uses other entities (e.g. “entity1” and “entity2”) for the state calculation. How can I customize the setting screen of my sensor for passing the parameters (“entity1” and “entity2”) to it, like it’s done for the measuring unit of a temperature sensor:
SCR-20220913-w3d