Merge pull request #355 from wolfmanjm/upstreamedge

on panel Only show fan icon if fan is on
fix on_set_public_data for Switch
fix toggle/momentary input switches