diff --git a/custom_components/octopus_energy/config_flow.py b/custom_components/octopus_energy/config_flow.py index 171fc2cc..05b125f8 100644 --- a/custom_components/octopus_energy/config_flow.py +++ b/custom_components/octopus_energy/config_flow.py @@ -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 ),