Skip to content

Commit

Permalink
fix(config): Updated target rate sensor to support type and name to b…
Browse files Browse the repository at this point in the history
…e updated
  • Loading branch information
BottlecapDave committed Apr 7, 2023
1 parent 97b49d0 commit 4888976
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/octopus_energy/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ async def __async_setup_target_rate_schema(self, config, errors):
return self.async_show_form(
step_id="target_rate",
data_schema=vol.Schema({
vol.Required(CONFIG_TARGET_NAME, default=config[CONFIG_TARGET_NAME]): str,
vol.Required(CONFIG_TARGET_HOURS, default=f'{config[CONFIG_TARGET_HOURS]}'): str,
vol.Required(CONFIG_TARGET_TYPE, default=config[CONFIG_TARGET_TYPE]): vol.In({
"Continuous": "Continuous",
"Intermittent": "Intermittent"
}),
vol.Required(CONFIG_TARGET_MPAN, default=config[CONFIG_TARGET_MPAN]): vol.In(
meters
),
Expand Down

0 comments on commit 4888976

Please sign in to comment.