Schedule-related bug-fixes, clean-up, and improvements
All changes:
- Update
_last_used_schedule(): provide the collected schedules as input in order to find the last-modified valid schedule. _rule_ids_by_x(): replace None by NONE, allowing for simpler typing.- Remove
schedule_temperaturefrom output: for Adam the schedule temperature cannot be collected when a schedule is not active. - Simplify
_schedules(), don't collect the schedule-details as no longer required. - Improve solution for plugwise-beta issue #276
- Move HA Core input-checks into the backend library (into
set_schedule_state()andset_preset())