Currently, when switching on a schedule or a sensor, the switch remains "off" while in its loading state. Make this a little more responsive/optimistic by switching it to "on" in the loading state where we are turning it on. If it fails, it will revert back to "off".
Add a 5-second sleep to start_schedule mutation. Go to /instance/schedules, enable some schedules. Verify that the switch goes to "on" while in its loading state, then becomes enabled and remains on.
Raise an exception from the mutation and repeat. Verify that the switch reverts to "off".