lovelace-toggle-lock-entity-row
lovelace-toggle-lock-entity-row copied to clipboard
Switch still toggles if you click on the toggle from the edge
Switch still toggles if you click on the toggle from the edge - it bypasses the lock and still turns on or off the switch if you click on the toggle from the edge (left or right side)
For does who can/want to fix this themselves, here some short instructions;
Add the following lines from lines as 20-23 in the .js file:
width: 70px;
height: 50px;
margin-left: -13px;
margin-top: -4px;
After adding above lines, change line 26 from:
margin-top: 8px;
to
margin-top: 13px;
And change line 28 from
margin-right: 7px;
to
margin-right: 22px;
This will make the overlay bigger so the switch is overlay completely, where its now not.
Thanks @freemann works great! I also had to add ?v=2.1 (version increment) in LL
This row is now deprecated. Please use restriction-card instead.