Skip to content

Commit

Permalink
fix: Remove config from entity category
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Nov 5, 2023
1 parent ae662cf commit 19e16f2
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 5 deletions.
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/binary-sensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const binarySensorDeviceClasses = [
] as const;

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'device_class',
type: 'select',
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/button.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { HaConfigOption } from '.';

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'device_class',
type: 'select',
Expand Down
5 changes: 0 additions & 5 deletions src/nodes/entity-config/editor/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ export interface HaConfigOption {
export const defaultHaConfigOptions: HaConfigOption[] = [
{ id: 'name', type: 'string' },
{ id: 'icon', type: 'string' },
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{ id: 'entity_picture', type: 'string' },
];

Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ export const numberUnitOfMeasurement: Record<
};

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'device_class',
type: 'select',
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/select.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { HaConfigOption } from '.';

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'options',
type: 'editableList',
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/sensor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ export const sensorUnitOfMeasurement: Record<
};

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'diagnostic'],
},
{
id: 'device_class',
type: 'select',
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/switch.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { HaConfigOption } from '.';

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'device_class',
type: 'select',
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/entity-config/editor/data/text.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { HaConfigOption } from '.';

export default [
{
id: 'entity_category',
type: 'select',
values: ['', 'config', 'diagnostic'],
},
{
id: 'mode',
type: 'select',
Expand Down

0 comments on commit 19e16f2

Please sign in to comment.