This is a small improvement to the IOSwitch class which allows setting the initial state.
This fixes an issue when the "water empty" state would briefly flash at startup because the sensor initial state is LOW, but we use HIGH as the "water is present" state.
This is a small improvement to the IOSwitch class which allows setting the initial state.
This fixes an issue when the "water empty" state would briefly flash at startup because the sensor initial state is
LOW
, but we useHIGH
as the "water is present" state.