Repository navigation
fixed hours: move weekdays misplaced by upgrade 133 into active_times - #4260
Merged
Merged
Conversation
upgrade_datastore_156 is now the Energy-Charts price cap (openWB#4284); the weekdays repair moves to 157.
Reviewer's GuideImplementationBump the datastore version and add migration 157 to move misplaced fixed-hours weekdays into active_times while preserving existing selections and leaving other providers untouched.
TestsTest the migration’s weekday repair, idempotence, and handling of providers that should remain unchanged.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Linked issuesChecked at commit 0226c7c #4259 [BUG] Feste Tarifstunden nach Update 2.2.x → 2.3.0: Fehler 'weekdays', keine Preise · 1 of 1 met
|
LKuemmel
approved these changes
Nov 11, 2026
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.
fixes #4259
upgrade_datastore_133hatweekdaysneben statt inactive_timesangelegt,fixed_hoursliestactive_times["weekdays"]→KeyError('weekdays')für alle Festen Tarifstunden aus 2.2.x.upgrade_datastore_157repariert bereits migrierte Konfigurationen (wieupgrade_datastore_155die Prioritätsfelder):fixed_hours)weekdaysnebenactive_timeswird entfernt, fehlendeactive_times["weekdays"]= alle Tage (so legt es 133 an)Getestet per pytest (zusätzlich: 2.2.2-Konfiguration durch 133-157, danach liefert der Abruf Preise), nicht auf einer Box.
Summary by Sourcery
Fix fixed-hours tariff configurations so migrated weekday schedules can be read without errors.
Bug Fixes:
Enhancements:
Tests: