Skip to content

Commit

Permalink
chore: create new yaml builders for testing (#708)
Browse files Browse the repository at this point in the history
* chore: create new yaml builders for testing
  • Loading branch information
frodehk authored Nov 21, 2024
1 parent 09929cb commit d942897
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class YamlElectricityConsumer(YamlBase):
title="NAME",
description="Name of the consumer.\n\n$ECALC_DOCS_KEYWORDS_URL/NAME",
)
category: ConsumerUserDefinedCategoryType = CategoryField(...)
category: YamlTemporalModel[ConsumerUserDefinedCategoryType] = CategoryField(...)
energy_usage_model: YamlTemporalModel[YamlElectricityEnergyUsageModel] = Field(
...,
title="ENERGY_USAGE_MODEL",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class YamlFuelConsumer(YamlBase):
title="NAME",
description="Name of the consumer.\n\n$ECALC_DOCS_KEYWORDS_URL/NAME",
)
category: ConsumerUserDefinedCategoryType = CategoryField(...)
category: YamlTemporalModel[ConsumerUserDefinedCategoryType] = CategoryField(...)
energy_usage_model: YamlTemporalModel[YamlFuelEnergyUsageModel] = Field(
...,
title="ENERGY_USAGE_MODEL",
Expand Down
Loading

0 comments on commit d942897

Please sign in to comment.