Add missing unit of measurement for tolerance option in proximity (#111876)
This commit is contained in:
parent
b0ed8c4961
commit
2a135b64b6
1 changed files with 4 additions and 2 deletions
|
@ -14,7 +14,7 @@ from homeassistant.config_entries import (
|
|||
ConfigFlowResult,
|
||||
OptionsFlow,
|
||||
)
|
||||
from homeassistant.const import CONF_ZONE
|
||||
from homeassistant.const import CONF_ZONE, UnitOfLength
|
||||
from homeassistant.core import State, callback
|
||||
from homeassistant.helpers.selector import (
|
||||
EntitySelector,
|
||||
|
@ -54,7 +54,9 @@ def _base_schema(user_input: dict[str, Any]) -> vol.Schema:
|
|||
CONF_TOLERANCE,
|
||||
default=user_input.get(CONF_TOLERANCE, DEFAULT_TOLERANCE),
|
||||
): NumberSelector(
|
||||
NumberSelectorConfig(min=1, max=100, step=1),
|
||||
NumberSelectorConfig(
|
||||
min=1, max=100, step=1, unit_of_measurement=UnitOfLength.METERS
|
||||
),
|
||||
),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue