From eedb86e80602b253caf008c06893f57e5d3915f3 Mon Sep 17 00:00:00 2001 From: Olivier Zalmanski <88216225+OlivierZal@users.noreply.github.com> Date: Mon, 4 Dec 2023 00:11:33 +0100 Subject: [PATCH] add holidayUntil --- app.ts | 3 ++- types.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app.ts b/app.ts index 3b9423d..6d9346a 100644 --- a/app.ts +++ b/app.ts @@ -2,7 +2,7 @@ import { App } from 'homey' // eslint-disable-line import/no-extraneous-dependen import axios from 'axios' import { wrapper } from 'axios-cookiejar-support' import { CookieJar } from 'tough-cookie' -import { DateTime, Duration } from 'luxon' +import { DateTime, Duration, Settings as LuxonSettings } from 'luxon' import withAPI from './mixins/withAPI' import { loginURL, @@ -27,6 +27,7 @@ export = class AristonApp extends withAPI(App) { readonly #retryTimeout!: NodeJS.Timeout public async onInit(): Promise { + LuxonSettings.defaultZone = this.homey.clock.getTimezone() await this.login() } diff --git a/types.ts b/types.ts index 49a29b1..8abefc4 100644 --- a/types.ts +++ b/types.ts @@ -64,6 +64,7 @@ interface BaseData { on?: boolean boostOn?: boolean comfortTemp?: number + holidayUntil?: string | null opMode?: number }