fix on_set_public_data for Switch
fix toggle/momentary input switches
Merge pull request #356 from wolfmanjm/upstreamedge

Fix some Switch issues