From 1f3cfecb4817e520169bb3a5a26642edaea36ad7 Mon Sep 17 00:00:00 2001 From: fars-fede-fire <87006332+fars-fede-fire@users.noreply.github.com> Date: Sun, 21 May 2023 09:10:27 +0000 Subject: [PATCH] removed defaults from config_flow --- custom_components/price_calc/config_flow.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/custom_components/price_calc/config_flow.py b/custom_components/price_calc/config_flow.py index 58b064f..280e71d 100644 --- a/custom_components/price_calc/config_flow.py +++ b/custom_components/price_calc/config_flow.py @@ -39,19 +39,19 @@ HISTORY_SOURCE_SCHEMA = vol.Schema( { - vol.Required(CONF_TYPE, default='dishwasher'): selector.TextSelector(), - vol.Required(CONF_MANUFACTOR, default='Electrolux'): selector.TextSelector(), - vol.Required(CONF_MODEL, default='eeq47200l'): selector.TextSelector(), - vol.Required(CONF_MODE, default='eco'): selector.TextSelector(), - vol.Required(CONF_MEASURE_METHOD, default='Shelly Plug S'): selector.TextSelector(), - vol.Required(CONF_HISTORY_SENSOR, default='sensor.shelly_energy'): selector.EntitySelector( + vol.Required(CONF_TYPE): selector.TextSelector(), + vol.Required(CONF_MANUFACTOR): selector.TextSelector(), + vol.Required(CONF_MODEL): selector.TextSelector(), + vol.Required(CONF_MODE): selector.TextSelector(), + vol.Required(CONF_MEASURE_METHOD): selector.TextSelector(), + vol.Required(CONF_HISTORY_SENSOR): selector.EntitySelector( selector.EntitySelectorConfig(domain=SENSOR_DOMAIN) ), vol.Required( - CONF_START_TIME, default="2023-05-17 12:47:35" + CONF_START_TIME ): selector.DateTimeSelector(selector.DateTimeSelectorConfig()), vol.Required( - CONF_END_TIME, default="2023-05-17 16:48:28" + CONF_END_TIME ): selector.DateTimeSelector(selector.DateTimeSelectorConfig()), } )