Add TypeScript integrations package
This commit is contained in:
@@ -0,0 +1 @@
|
||||
This folder is generated from Home Assistant component metadata. Replace it with a handwritten TypeScript port when implementing runtime support.
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './tradfri.classes.integration.js';
|
||||
export * from './tradfri.types.js';
|
||||
@@ -0,0 +1,24 @@
|
||||
import { DescriptorOnlyIntegration } from '../../core/classes.descriptoronlyintegration.js';
|
||||
|
||||
export class HomeAssistantTradfriIntegration extends DescriptorOnlyIntegration {
|
||||
constructor() {
|
||||
super({
|
||||
domain: "tradfri",
|
||||
displayName: "IKEA TRÅDFRI",
|
||||
status: 'descriptor-only',
|
||||
metadata: {
|
||||
"source": "home-assistant/core",
|
||||
"upstreamPath": "homeassistant/components/tradfri",
|
||||
"upstreamDomain": "tradfri",
|
||||
"integrationType": "hub",
|
||||
"iotClass": "local_polling",
|
||||
"requirements": [
|
||||
"pytradfri[async]==9.0.1"
|
||||
],
|
||||
"dependencies": [],
|
||||
"afterDependencies": [],
|
||||
"codeowners": []
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
export interface IHomeAssistantTradfriConfig {
|
||||
// TODO: replace with the TypeScript-native config for tradfri.
|
||||
[key: string]: unknown;
|
||||
}
|
||||
Reference in New Issue
Block a user