Skip to content

Commit

Permalink
Remove duplicate header in entity option - advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
farmio committed Oct 17, 2024
1 parent 957a407 commit 5c340a3
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions src/components/knx-configure-entity-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,26 @@ export const renderConfigureEntityCard = (
></ha-selector-text>
</ha-settings-row>
<ha-expansion-panel .header=${"Advanced"} outlined>
<ha-settings-row narrow>
<div slot="heading">Entity settings</div>
<div slot="description">Description</div>
<ha-selector-select
.hass=${hass}
.label=${"Entity category"}
.helper=${"Leave empty for standard behaviour."}
.required=${false}
.selector=${{
select: {
multiple: false,
custom_value: false,
mode: "dropdown",
options: [
{ value: "config", label: "Config" },
{ value: "diagnostic", label: "Diagnostic" },
],
},
}}
.key=${"entity_category"}
.value=${config.entity_category}
@value-changed=${updateConfig}
></ha-selector-select>
</ha-settings-row>
<ha-selector-select
.hass=${hass}
.label=${"Entity category"}
.helper=${"Leave empty for standard behaviour."}
.required=${false}
.selector=${{
select: {
multiple: false,
custom_value: false,
mode: "dropdown",
options: [
{ value: "config", label: "Config" },
{ value: "diagnostic", label: "Diagnostic" },
],
},
}}
.key=${"entity_category"}
.value=${config.entity_category}
@value-changed=${updateConfig}
></ha-selector-select>
</ha-expansion-panel>
</ha-card>
`;
Expand Down

0 comments on commit 5c340a3

Please sign in to comment.