Simulated Switch without app control?

Looking for a simulated switch handler that doesn’t allow control through app - only want to be able to control it programmatically. @anon36505037 you’ve helped edit contact sensors before like this - is it possible to do this with a switch too?

Can’t seem to find where the GitHub repo is for simulated switch so I used this one but it looks different than what you showed.

Believe this is the part that needs editing though…

Never mind I got it - just removed the action from the handler. Didn’t realize it was that easy. Thanks for your help!