Skip to content

Commit 60229ce

Browse files
authored
Add markdown to parameter descriptions for actions (#27944)
add markdown to parameter descriptions for actions
1 parent e45b631 commit 60229ce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/components/ha-service-control.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import type { HomeAssistant, ValueChangedEvent } from "../types";
3333
import { documentationUrl } from "../util/documentation-url";
3434
import "./ha-checkbox";
3535
import "./ha-icon-button";
36+
import "./ha-markdown";
3637
import "./ha-selector/ha-selector";
3738
import "./ha-service-picker";
3839
import "./ha-service-section-icon";
@@ -684,10 +685,14 @@ export class HaServiceControl extends LitElement {
684685
dataField.key}</span
685686
>
686687
<span slot="description"
687-
>${this.hass.localize(
688-
`component.${domain}.services.${serviceName}.fields.${dataField.key}.description`
689-
) || dataField?.description}</span
690-
>
688+
><ha-markdown
689+
breaks
690+
allow-svg
691+
.content=${this.hass.localize(
692+
`component.${domain}.services.${serviceName}.fields.${dataField.key}.description`
693+
) || dataField?.description}
694+
></ha-markdown>
695+
</span>
691696
<ha-selector
692697
.context=${this._selectorContext(targetEntities)}
693698
.disabled=${this.disabled ||

0 commit comments

Comments
 (0)