Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for alternative template schema #3235

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions src/language-service/src/schemas/integrations/core/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,37 +32,37 @@ export interface Item {
* List of binary sensors
* https://www.home-assistant.io/integrations/template#binary_sensor
*/
binary_sensor?: BinarySensorItem[] | IncludeList;
binary_sensor?: BinarySensorItem | BinarySensorItem[] | IncludeList;

/**
* List of buttons
* https://www.home-assistant.io/integrations/template#button
*/
button?: ButtonItem[] | IncludeList;
button?: ButtonItem | ButtonItem[] | IncludeList;

/**
* List of numbers
* https://www.home-assistant.io/integrations/template#number
*/
number?: NumberItem[] | IncludeList;
number?: NumberItem | NumberItem[] | IncludeList;

/**
* List of images
* https://www.home-assistant.io/integrations/template/#image
*/
image?: ImageItem[] | IncludeList;
image?: ImageItem | ImageItem[] | IncludeList;

/**
* List of selects
* https://www.home-assistant.io/integrations/template#select
*/
select?: SelectItem[] | IncludeList;
select?: SelectItem | SelectItem[] | IncludeList;

/**
* List of sensors
* https://www.home-assistant.io/integrations/template#sensor
*/
sensor?: SensorItem[] | IncludeList;
sensor?: SensorItem | SensorItem[] | IncludeList;

/**
* Define actions to be executed when the trigger fires. Optional. Variables set by the action script are available when evaluating entity templates.
Expand Down