Wrong redstone state, when lever is added with command block
When lever is in on-state and I use command block to replace it with off-state lever, redstone state remains on.
/setblock ~ ~ ~-2 lever 3
If I use two command blocs and first remove lever and then add new off-state lever, everything works fine.
/setblock ~ ~ ~-3 air
/setblock ~ ~ ~-2 lever 3