feat: Implement schedule block data contract for Scheduled Climate - #2
Merged
Merged
Conversation
- Add ScheduleBlock class to manage climate settings for scheduled blocks. - Introduce ClimateCommand and BlockPlan classes for command handling. - Implement helper functions for planning HVAC modes, temperatures, fan modes, and humidity settings. - Create diagnostics support for Scheduled Climate to provide config entry diagnostics. test: Add unit tests for schedule block functionality - Implement tests for ScheduleBlock and build_plan functions. - Validate behavior for HVAC mode, temperature ranges, and command generation. - Ensure proper handling of unsupported features and out-of-range values. feat: Add frontend support for schedule management - Create schedule helpers for managing time ranges and blocks. - Implement validation for draft blocks and ensure proper serialization for storage. - Add utility functions for converting legacy time formats to the new structure. test: Add migration tests for Scheduled Climate config entries - Ensure legacy time formats are preserved during migration from version 1 to 2. - Validate that entries without legacy times migrate correctly without issues.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test: Add unit tests for schedule block functionality
feat: Add frontend support for schedule management
test: Add migration tests for Scheduled Climate config entries