mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
37 lines
697 B
TypeScript
37 lines
697 B
TypeScript
|
import {
|
||
|
ICredentialType,
|
||
|
NodePropertyTypes,
|
||
|
} from 'n8n-workflow';
|
||
|
|
||
|
export class HomeAssistantApi implements ICredentialType {
|
||
|
name = 'homeAssistantApi';
|
||
|
displayName = 'Home Assistant API';
|
||
|
documentationUrl = 'homeAssistant';
|
||
|
properties = [
|
||
|
{
|
||
|
displayName: 'Host',
|
||
|
name: 'host',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Port',
|
||
|
name: 'port',
|
||
|
type: 'number' as NodePropertyTypes,
|
||
|
default: 8123,
|
||
|
},
|
||
|
{
|
||
|
displayName: 'SSL',
|
||
|
name: 'ssl',
|
||
|
type: 'boolean' as NodePropertyTypes,
|
||
|
default: false,
|
||
|
},
|
||
|
{
|
||
|
displayName: 'Access Token',
|
||
|
name: 'accessToken',
|
||
|
type: 'string' as NodePropertyTypes,
|
||
|
default: '',
|
||
|
},
|
||
|
];
|
||
|
}
|