n8n/packages/nodes-base/credentials/HomeAssistantApi.credentials.ts
Iván Ovejero fa05d7557b
Simplify more property types in credentials classes (#2211)
*  Simplify more property types

* 👕 Fix lint
2021-10-07 23:07:56 +02:00

37 lines
630 B
TypeScript

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: '',
},
];
}