mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-02-11 07:15:38 +00:00
lint & format
This commit is contained in:
@@ -60,7 +60,7 @@ export async function sendFimpMsg({
|
||||
return new Promise((resolve, reject) => {
|
||||
const timeout = setTimeout(() => {
|
||||
fimp?.removeListener('message', onResponse);
|
||||
let error = new Error(`Timeout waiting for FIMP response (uid: ${uid}, service: ${service}, cmd: ${cmd})`);
|
||||
const error = new Error(`Timeout waiting for FIMP response (uid: ${uid}, service: ${service}, cmd: ${cmd})`);
|
||||
log.warn(error.message, error.stack);
|
||||
reject(error);
|
||||
}, timeoutMs);
|
||||
@@ -72,7 +72,7 @@ export async function sendFimpMsg({
|
||||
if (msg.type === 'evt.error.report') {
|
||||
fimp?.removeListener('message', onResponse);
|
||||
|
||||
let error = new Error(`Received FIMP response for message ${uid}: error (evt.error.report) (matched using uid)`);
|
||||
const error = new Error(`Received FIMP response for message ${uid}: error (evt.error.report) (matched using uid)`);
|
||||
log.warn(error.message, error.stack);
|
||||
reject(error);
|
||||
return;
|
||||
@@ -90,7 +90,7 @@ export async function sendFimpMsg({
|
||||
if (msg.type === 'evt.error.report') {
|
||||
fimp?.removeListener('message', onResponse);
|
||||
|
||||
let error = new Error(`Received FIMP response for message ${uid}: error (evt.error.report) (matched using topic)`);
|
||||
const error = new Error(`Received FIMP response for message ${uid}: error (evt.error.report) (matched using topic)`);
|
||||
log.warn(error.message, error.stack);
|
||||
reject(error);
|
||||
return;
|
||||
|
||||
@@ -33,6 +33,6 @@ export async function getInclusionReport(parameters: { adapterAddress: string; a
|
||||
|
||||
return inclusionReport.val;
|
||||
} catch (e) {
|
||||
log.error(`Failed getting inclusion report for adapterAddress: ${parameters.adapterAddress}, adapterService: ${parameters.adapterService}, deviceId: ${parameters.deviceId}`)
|
||||
log.error(`Failed getting inclusion report for adapterAddress: ${parameters.adapterAddress}, adapterService: ${parameters.adapterService}, deviceId: ${parameters.deviceId}`, e)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export type VinculumPd7Device = {
|
||||
model?: string | null;
|
||||
// "Model alias", e.g. "TS0202"
|
||||
modelAlias?: string | null;
|
||||
functionality?: 'appliance' | 'climate' | 'energy' | 'ev_charger' | 'lighting' | 'media' | 'other' | 'power' | 'safety' | 'security' | 'shading' | string | null,
|
||||
functionality?: 'appliance' | 'climate' | 'energy' | 'ev_charger' | 'lighting' | 'media' | 'other' | 'power' | 'safety' | 'security' | 'shading' | string | null;
|
||||
services?: Record<string, VinculumPd7Service> | null;
|
||||
type?: {
|
||||
// User-defined device type (e.g. "sensor", "chargepoint", or "light")
|
||||
|
||||
Reference in New Issue
Block a user