Skip to content

Commit d1b7f58

Browse files
MaStrclaude
andcommitted
Make timezone required in BatcontrolConfig (no default)
The dummy config documents timezone as "not optional" and core logic uses it for scheduling/price-window alignment. Silently defaulting to 'Europe/Berlin' masks misconfigured setups. Now fails fast at config load with a clear validation error when timezone is absent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c69812f commit d1b7f58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/batcontrol/config_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class BatcontrolConfig(BaseModel):
269269
"""
270270
model_config = ConfigDict(extra='allow')
271271

272-
timezone: str = 'Europe/Berlin'
272+
timezone: str
273273
time_resolution_minutes: int = 60
274274
loglevel: str = 'info'
275275
logfile_enabled: bool = True

0 commit comments

Comments
 (0)