mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-14 00:24:07 -08:00
477b3598ea
* ✨ Add Home Assistant io node * Implement continueOnFail * Add Camera Proxy resource * Clean up * Minor improvements * Remove 'Io' from the node name & code * Fix generic functions naming * ⚡ Improvements * Apply review changes & fix minor bugs * Reduce nesting for additional attributes * Minor changes * ⚡ Minor improvements and deactivate "Event" resource Co-authored-by: dali <servfrdali@yahoo.fr> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
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: '',
|
|
},
|
|
];
|
|
}
|