Skip to content

feat: Implement schedule block data contract for Scheduled Climate - #2

Merged
stupiddevmonkey merged 1 commit into
mainfrom
AddWeeklyScheduleNative
Aug 8, 2026
Merged

stupiddevmonkey merged 1 commit into
mainfrom
AddWeeklyScheduleNative

Conversation

@stupiddevmonkey

Copy link
Copy Markdown
Owner
  • 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.

- 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.
@stupiddevmonkey
stupiddevmonkey merged commit 653f5d4 into main Aug 8, 2026
10 checks passed
@stupiddevmonkey
stupiddevmonkey deleted the AddWeeklyScheduleNative branch August 8, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant