Skip to content

Commit

Permalink
add holidayUntil
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed Dec 3, 2023
1 parent 5ea1855 commit eedb86e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -27,6 +27,7 @@ export = class AristonApp extends withAPI(App) {
readonly #retryTimeout!: NodeJS.Timeout

public async onInit(): Promise<void> {
LuxonSettings.defaultZone = this.homey.clock.getTimezone()
await this.login()
}

Expand Down
1 change: 1 addition & 0 deletions types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ interface BaseData {
on?: boolean
boostOn?: boolean
comfortTemp?: number
holidayUntil?: string | null
opMode?: number
}

Expand Down

0 comments on commit eedb86e

Please sign in to comment.