Skip to content

Commit

Permalink
Remove entity_id from LcnEntityConfig (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
alengwenus authored Aug 23, 2024
1 parent 4ed8a7c commit 243cf4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/dialogs/lcn-create-entity-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,8 @@ export class CreateEntityDialog extends LitElement {
</ha-select>
<ha-textfield
id="name-input"
label=${this.lcn.localize("entity-id")}
label=${this.lcn.localize("name")}
type="string"
prefix=${this.domain + "."}
maxLength="20"
@input=${this._nameChanged}
></ha-textfield>
Expand Down
5 changes: 2 additions & 3 deletions src/lcn-entities-data-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class LCNEntitiesDataTable extends LitElement {
narrow
? {
name: {
title: this.lcn.localize("entity-id"),
title: this.lcn.localize("name"),
sortable: true,
direction: "asc",
grows: true,
Expand All @@ -63,7 +63,7 @@ export class LCNEntitiesDataTable extends LitElement {
}
: {
name: {
title: this.lcn.localize("entity-id"),
title: this.lcn.localize("name"),
sortable: true,
direction: "asc",
grows: true,
Expand Down Expand Up @@ -109,7 +109,6 @@ export class LCNEntitiesDataTable extends LitElement {
.dir=${computeRTLDirection(this.hass)}
auto-height
clickable
.id=${"entity_id"}
></ha-data-table>
`;
}
Expand Down
15 changes: 7 additions & 8 deletions src/types/lcn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,13 @@ export interface LcnEntityConfig {
domain: string;
resource: string;
domain_data:
| BinarySensorConfig[]
| ClimateConfig[]
| CoverConfig[]
| LightConfig[]
| SceneConfig[]
| SensorConfig[]
| SwitchConfig[];
entity_id: string;
| BinarySensorConfig
| ClimateConfig
| CoverConfig
| LightConfig
| SceneConfig
| SensorConfig
| SwitchConfig;
}

export interface LcnDeviceConfig {
Expand Down

0 comments on commit 243cf4e

Please sign in to comment.