n8n/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts

34 lines
627 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
export class HomeAssistantApi implements ICredentialType {
name = 'homeAssistantApi';
displayName = 'Home Assistant API';
documentationUrl = 'homeAssistant';
properties: INodeProperties[] = [
{
displayName: 'Host',
name: 'host',
type: 'string',
default: '',
},
{
displayName: 'Port',
name: 'port',
type: 'number',
default: 8123,
},
{
displayName: 'SSL',
name: 'ssl',
type: 'boolean',
default: false,
},
{
displayName: 'Access Token',
name: 'accessToken',
type: 'string',
default: '',
},
];
}