Skip to content

Commit

Permalink
improve
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierZal committed May 5, 2024
1 parent 9dfcf52 commit d2413cf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
LuxonSettings.defaultZone = this.homey.clock.getTimezone()
Expand Down

0 comments on commit d2413cf

Please sign in to comment.