Skip to content

Commit

Permalink
chore: replace Logger to Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-seongwoo-jun committed Nov 10, 2024
1 parent ee3e622 commit 762ee7e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/navien/navien.api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import { Logger } from 'homebridge';
import { Logging } from 'homebridge';
import fetch, { BodyInit, HeadersInit, Response } from 'node-fetch';

import { DoubleHeaterState, HeaterItemState, HeaterState, OperationMode, SingleHeaterState } from '../aws/interfaces';
Expand All @@ -14,7 +14,7 @@ type RequestMethods = 'GET' | 'POST';

export class NavienApi {
constructor(
private readonly log: Logger,
private readonly log: Logging,
private readonly sessionManager: NavienSessionManager,
) { }

Expand Down
4 changes: 2 additions & 2 deletions src/navien/navien.auth.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import fetchCookie from 'fetch-cookie';
import { Logger } from 'homebridge';
import { Logging } from 'homebridge';
import fetch from 'node-fetch';
import { URLSearchParams } from 'url';

Expand All @@ -12,7 +12,7 @@ const fetchWithCookies = fetchCookie(fetch);

export class NavienAuth {
constructor(
private readonly log: Logger,
private readonly log: Logging,
) { }

async login(username: string, password: string): Promise<LoginResponse> {
Expand Down
4 changes: 2 additions & 2 deletions src/navien/navien.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ConnectionState } from '@aws-amplify/pubsub';
import assert from 'assert';
import { Logger } from 'homebridge';
import { Logging } from 'homebridge';

import { OperationMode } from '../aws/interfaces';
import { AwsPubSub } from '../aws/pubsub';
Expand All @@ -16,7 +16,7 @@ export class NavienService {
private deviceStatusRepositories?: Record<string, NavienDeviceStatusRepository>;

constructor(
private readonly log: Logger,
private readonly log: Logging,
private readonly sessionManager: NavienSessionManager,
private readonly api: NavienApi,
) { }
Expand Down
4 changes: 2 additions & 2 deletions src/navien/navien.session-manager.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import assert from 'assert';
import { Logger } from 'homebridge';
import { Logging } from 'homebridge';

import { AwsSession } from '../aws/aws.session';
import { NavienPlatformConfig } from '../platform';
Expand Down Expand Up @@ -36,7 +36,7 @@ export class NavienSessionManager {
private _user?: NavienUser;

constructor(
private readonly log: Logger,
private readonly log: Logging,
private readonly auth: NavienAuth,
private readonly storage: Persist,
private readonly config: NavienPlatformConfig,
Expand Down
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { API, Characteristic, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service } from 'homebridge';
import { API, Characteristic, DynamicPlatformPlugin, Logging, PlatformAccessory, PlatformConfig, Service } from 'homebridge';
import path from 'path';

import ElectricMat from './homebridge/electric-mat.device';
Expand Down Expand Up @@ -38,7 +38,7 @@ export class NavienHomebridgePlatform implements DynamicPlatformPlugin {
public readonly navienService: NavienService;

constructor(
public readonly log: Logger,
public readonly log: Logging,
config: PlatformConfig,
public readonly api: API,
) {
Expand Down

0 comments on commit 762ee7e

Please sign in to comment.