diff --git a/homeassistant/components/integration/config_flow.py b/homeassistant/components/integration/config_flow.py index 1f6fc7c6ee0..3f7d39554e8 100644 --- a/homeassistant/components/integration/config_flow.py +++ b/homeassistant/components/integration/config_flow.py @@ -83,7 +83,7 @@ CONFIG_SCHEMA = vol.Schema( {"select": {"options": UNIT_PREFIXES}} ), vol.Required(CONF_UNIT_TIME, default=TIME_HOURS): selector.selector( - {"select": {"options": TIME_UNITS}} + {"select": {"options": TIME_UNITS, "mode": "dropdown"}} ), } ) diff --git a/homeassistant/components/integration/strings.json b/homeassistant/components/integration/strings.json index 9566ca686d6..4eb3b952a78 100644 --- a/homeassistant/components/integration/strings.json +++ b/homeassistant/components/integration/strings.json @@ -1,26 +1,34 @@ { + "title": "Integration - Riemann sum integral sensor", "config": { "step": { "user": { - "title": "New Integration sensor", - "description": "Precision controls the number of decimal digits in the output.\nThe sum will be scaled according to the selected metric prefix and integration time.", + "title": "Add Riemann sum integral sensor", + "description": "Create a sensor that calculates a Riemann sum to estimate the integral of a sensor.", "data": { "method": "Integration method", "name": "Name", "round": "Precision", "source": "Input sensor", "unit_prefix": "Metric prefix", - "unit_time": "Integration time" + "unit_time": "Time unit" + }, + "data_description": { + "round": "Controls the number of decimal digits in the output.", + "unit_prefix": "The output will be scaled according to the selected metric prefix.", + "unit_time": "The output will be scaled according to the selected time unit." } } } }, "options": { "step": { - "options": { - "description": "Precision controls the number of decimal digits in the output.", + "init": { "data": { "round": "[%key:component::integration::config::step::user::data::round%]" + }, + "data_description": { + "round": "[%key:component::integration::config::step::user::data_description::round%]" } } } diff --git a/homeassistant/components/integration/translations/en.json b/homeassistant/components/integration/translations/en.json index 31223f01842..1ee047b447f 100644 --- a/homeassistant/components/integration/translations/en.json +++ b/homeassistant/components/integration/translations/en.json @@ -8,21 +8,29 @@ "round": "Precision", "source": "Input sensor", "unit_prefix": "Metric prefix", - "unit_time": "Integration time" + "unit_time": "Time unit" }, - "description": "Precision controls the number of decimal digits in the output.\nThe sum will be scaled according to the selected metric prefix and integration time.", - "title": "New Integration sensor" + "data_description": { + "round": "Controls the number of decimal digits in the output.", + "unit_prefix": "The output will be scaled according to the selected metric prefix.", + "unit_time": "The output will be scaled according to the selected time unit." + }, + "description": "Create a sensor that calculates a Riemann sum to estimate the integral of a sensor.", + "title": "Add Riemann sum integral sensor" } } }, "options": { "step": { - "options": { + "init": { "data": { "round": "Precision" }, - "description": "Precision controls the number of decimal digits in the output." + "data_description": { + "round": "Controls the number of decimal digits in the output." + } } } - } + }, + "title": "Integration - Riemann sum integral sensor" } \ No newline at end of file