Skip to content

Commit

Permalink
feat: add number selector to JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jan 1, 2025
1 parent e8a2e54 commit eb57f6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/powercalc/power_profile/power_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def linear_config(self) -> ConfigType | None:

@property
def multi_switch_config(self) -> ConfigType | None:
"""Get configuration to set up linear strategy."""
"""Get configuration to set up multi_switch strategy."""
return self.get_strategy_config(CalculationStrategy.MULTI_SWITCH)

@property
Expand Down
11 changes: 11 additions & 0 deletions profile_library/model_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,17 @@
"type": "string"
}
}
},
"number": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
}
}
}
}
}
Expand Down

0 comments on commit eb57f6d

Please sign in to comment.