Don't popup more information about an entity

I’m working to develop a entity row card that only lets you lock a lock. When I click on the row, the entity popup still happens that gives you the standard history and unlock/lock. How can I disable this?

Take example from button card, you can customize long press action, which by default opens more info popup. You can set it as Nothing