From d2413cfaa8c59d45ce8bfe9db00e4f0f4e8bb798 Mon Sep 17 00:00:00 2001 From: Olivier Zalmanski <88216225+OlivierZal@users.noreply.github.com> Date: Sun, 5 May 2024 14:28:12 +0200 Subject: [PATCH] improve --- app.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app.ts b/app.ts index 973f246..6da718a 100644 --- a/app.ts +++ b/app.ts @@ -3,7 +3,14 @@ import AristonAPI from '@olivierzal/ariston-api' import { Settings as LuxonSettings } from 'luxon' export = class AristonApp extends App { - public readonly aristonAPI = new AristonAPI(this.homey.settings, this) + public readonly aristonAPI = new AristonAPI(this.homey.settings, { + error: (...args): void => { + this.error(...args) + }, + log: (...args): void => { + this.log(...args) + }, + }) public override async onInit(): Promise { LuxonSettings.defaultZone = this.homey.clock.getTimezone()