evaluatedSwitch component: - remove duplicate code for inverted and non-inverted mode - add new constructor for instance with a function to obtain current input state instead of gpio pin (e.g. needed for 4switches on analog input)
evaluatedSwitch component: - remove duplicate code for inverted and non-inverted mode - add new constructor for instance with a function to obtain current input state instead of gpio pin (e.g. needed for 4switches on analog input)