-
Notifications
You must be signed in to change notification settings - Fork 56
Feat/efficiencyfield support sensor #2142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
31f8281
b599e43
cf0edab
f0fc4c5
7772bc2
9c72835
7a2925a
9e00754
6ab9798
85a2cb0
0ca0340
f5f8d50
3f57300
057461e
0efacb1
025bf3d
1a213b4
18d2369
40a055e
abe7c1e
23c6ea0
b0ff94a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,7 +40,8 @@ | |
|
|
||
|
|
||
| class EfficiencyField(QuantityField): | ||
|
joshuaunity marked this conversation as resolved.
|
||
| """Field that deserializes to a Quantity with % units. Must be greater than 0% and less than or equal to 100%. | ||
| """Field that deserializes to a Quantity with % units. | ||
| Fixed values must be greater than 0% and less than or equal to 100%. | ||
|
|
||
| Examples: | ||
|
|
||
|
|
@@ -435,7 +436,8 @@ class DBStorageFlexModelSchema(Schema): | |
| metadata={"deprecated field": "soc-usage"}, | ||
| ) | ||
|
|
||
| roundtrip_efficiency = EfficiencyField( | ||
| roundtrip_efficiency = VariableQuantityField( | ||
| "%", | ||
| data_key="roundtrip-efficiency", | ||
| required=False, | ||
| metadata={"deprecated field": "roundtrip_efficiency"}, | ||
|
|
@@ -455,7 +457,8 @@ class DBStorageFlexModelSchema(Schema): | |
| metadata={"deprecated field": "discharging-efficiency"}, | ||
| ) | ||
|
|
||
| storage_efficiency = EfficiencyField( | ||
| storage_efficiency = VariableQuantityField( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there no associated change to the openapi-specs.json?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, I don't think they should, as the flex-config schema isn't directly placed on the API's themselves, rather they are used under the hood. |
||
| "%", | ||
| data_key="storage-efficiency", | ||
| required=False, | ||
| metadata={"deprecated field": "storage_efficiency"}, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.