Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

added custom features to entity #37

Merged
merged 1 commit into from
Jan 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/sub-menus/available-entities/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class AvailableEntities extends Vue {
friendly_name: entity.friendly_name,
integration: entity.integration.id,
supported_features: entity.supported_features,
custom_features: entity.custom_features,
type: entity.type
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/store/aggregates/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export class EntitiesAggregate {
friendly_name: entity.friendly_name,
friendly_name_search_term: entity.friendly_name,
supported_features: entity.supported_features,
custom_features: entity.custom_features,
integration: integrations.find((integration) => integration.id === entity.integration) as IIntegrationInstance
}))
], [] as IEntityAggregate[]
Expand Down Expand Up @@ -55,6 +56,7 @@ export class EntitiesAggregate {
friendly_name: entity.friendly_name,
friendly_name_search_term: entity.friendly_name,
supported_features: entity.supported_features,
custom_features: entity.custom_features,
type: entity.type,
integration: integrations.find((integration) => integration.id === entity.integration) as IIntegrationInstance
}));
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export interface IEntity {
area: string;
friendly_name: string;
supported_features: string[];
custom_features: string[];
}

export interface IIntegrationInstance {
Expand Down Expand Up @@ -239,6 +240,7 @@ export interface IEntityAggregate {
friendly_name: string;
friendly_name_search_term: string;
supported_features: string[];
custom_features: string[];
}

export interface IGroupAggregate {
Expand Down