Fix "off" calculation
The "off" times were sorted based on the "on" times of the corresponding range. However, this is incorrect when there is a day wraparound. For example: the "off" times of [2pm-4pm], [22pm-10am] were 4pm, 10am (in this order). This caused the state to change only at 4pm. The logic was fixed to sort the "off" times independently.
Full Changelog: v2.1.0...v2.2.0