Fix alarmSwitch warning