This commit is contained in:
G Johansson
2026-05-12 16:42:51 +00:00
parent 833a2c3e7e
commit b4f7a315d1
2 changed files with 3 additions and 0 deletions
@@ -65,6 +65,7 @@ async def get_options_schema(handler: SchemaCommonFlowHandler) -> vol.Schema:
description_field="compensated_value",
multiple=True,
translation_key=CONF_DATAPOINTS,
overview_labels=False,
fields={
CONF_UNCOMPENSATED_VALUE: ObjectSelectorField(
required=True,
+2
View File
@@ -1641,6 +1641,7 @@ class ObjectSelectorConfig(BaseSelectorConfig, total=False):
label_field: str
description_field: str
translation_key: str
overview_labels: bool
@SELECTORS.register("object")
@@ -1662,6 +1663,7 @@ class ObjectSelector(Selector[ObjectSelectorConfig]):
vol.Optional("label_field"): str,
vol.Optional("description_field"): str,
vol.Optional("translation_key"): str,
vol.Optional("overview_labels", default=False): bool,
}
)