Convention has been to do the [0] tuple indexing when assigned to class variable below. If doing the [0] tuple indexing here, we don't need these temporary variables - can assign directly to the class variables.
The original file didn't have the copyright so couldn't find easily what was the actual dates, just put some dates. Bamboo will later update the copyright with correct information.
That if has an extra condition (beyond pump is not on). So alarm persistence is only reset if other condition is met. If other condition is not met, persistence is left in limbo.