Add Event resource to Home Assistant

This commit is contained in:
Jan Oberhauser
2021-07-28 13:27:46 +02:00
parent 231c15801a
commit 1faaef1171
2 changed files with 13 additions and 13 deletions

View File

@@ -87,10 +87,10 @@ export class HomeAssistant implements INodeType {
name: 'Config',
value: 'config',
},
// {
// name: 'Event',
// value: 'event',
// },
{
name: 'Event',
value: 'event',
},
// {
// name: 'History',
// value: 'history',
@@ -226,7 +226,7 @@ export class HomeAssistant implements INodeType {
const limit = this.getNodeParameter('limit', i) as number;
responseData = responseData.slice(0, limit);
}
} else if (operation === 'post') {
} else if (operation === 'create') {
const eventType = this.getNodeParameter('eventType', i) as string;
const eventAttributes = this.getNodeParameter('eventAttributes', i) as {
attributes: IDataObject[],