Repository: home-assistant/core
File: script/hassfest/translations.py (Python)

Code before:
                require_step_title=False,
                mandatory_description=(
                    "user" if integration.integration_type == "helper" else None
                ),
            ),
            vol.Optional("config_subentries"): cv.schema_with_slug_keys(
                gen_data_entry_schema(
                    config=config,
                    integration=integration,
                    flow_title=REMOVED,
                    require_step_title=False,
                    subentry_flow=True,
                ),
                slug_validator=vol.Any("_", cv.slug),
            ),
            vol.Optional("options"): gen_data_entry_schema(
                config=config,
                integration=integration,
                flow_title=UNDEFINED,
                require_step_title=False,
            ),
            vol.Optional("preview_features"): cv.schema_with_slug_keys(
                {
                    vol.Required("name"): translation_value_validator,
                    vol.Required("description"): custom_translation_value_validator(
                        allow_urls=True
                    ),
                    vol.Optional("enable_confirmation"): translation_value_validator,
                    vol.Optional("disable_confirmation"): translation_value_validator,
                },
                slug_validator=translation_key_validator,
            ),
            vol.Optional("selector"): cv.schema_with_slug_keys(
                {
                    vol.Optional("choices"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("options"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("unit_of_measurement"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("fields"): vol.Any(
                        # Old format:
                        # "key": "translation"
                        cv.schema_with_slug_keys(str),
                        # New format:

Review comment (suggestion):
```suggestion
                        allow_placeholders=False,
                        allow_urls=True,
```


Code after:
                require_step_title=False,
                mandatory_description=(
                    "user" if integration.integration_type == "helper" else None
                ),
            ),
            vol.Optional("config_subentries"): cv.schema_with_slug_keys(
                gen_data_entry_schema(
                    config=config,
                    integration=integration,
                    flow_title=REMOVED,
                    require_step_title=False,
                    subentry_flow=True,
                ),
                slug_validator=vol.Any("_", cv.slug),
            ),
            vol.Optional("options"): gen_data_entry_schema(
                config=config,
                integration=integration,
                flow_title=UNDEFINED,
                require_step_title=False,
            ),
            vol.Optional("preview_features"): cv.schema_with_slug_keys(
                {
                    vol.Required("name"): translation_value_validator,
                    vol.Required("description"): custom_translation_value_validator(
                        allow_placeholders=False,
                        allow_urls=True,
                    ),
                    vol.Optional("enable_confirmation"): translation_value_validator,
                    vol.Optional("disable_confirmation"): translation_value_validator,
                },
                slug_validator=translation_key_validator,
            ),
            vol.Optional("selector"): cv.schema_with_slug_keys(
                {
                    vol.Optional("choices"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("options"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("unit_of_measurement"): cv.schema_with_slug_keys(
                        translation_value_validator,
                        slug_validator=translation_key_validator,
                    ),
                    vol.Optional("fields"): vol.Any(
                        # Old format:
                        # "key": "translation"
                        cv.schema_with_slug_keys(str),