Show switch as outlet - customize via YAML?

Hi!

I have a KNX installation and can control 100 switch entities, from which most are outlets. I know that I can configure a switch to be shown as an outlet in Lovelace. But is there a faster way to do the same via YAML?

I need far to many clicks to change all…

Thx,
Sebastian

device_class: outlet
see https://www.home-assistant.io/integrations/knx/#switch

Thanx a lot. I really missed that description, but I already tried device_class: outlet because I had such a feeling :wink:

I didn’t work, but that may be the case because entities were already present and did not get updated. that was my fault, because Visual Studio Code lost the SMB connection and my configuration.yaml was not updated…