Skip to content

Commit

Permalink
chore: update dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper-seinhorst committed Mar 20, 2023
1 parent 4b7ea2f commit 160b777
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/ChargerAccessory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ export class PorscheChargerAccessory implements PorscheAccessory {
public readonly Characteristic: typeof Characteristic = this.api.hap.Characteristic;
private chargerSensorService: Service;
private batteryService: Service;
private batteryLevel: number = 100;
private batteryLevel = 100;
private lowBatteryLevel: number;
private isLowBatteryLevel: boolean = false;
private isCharging: boolean = false;
private isLowBatteryLevel = false;
private isCharging = false;
private sensorType: 'occupancy' | 'contact';

constructor(public config: PlatformConfig, public readonly log: Logger, public readonly api: API, public accessory: PlatformAccessory) {
Expand Down
2 changes: 1 addition & 1 deletion src/Platform.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge';
import { PorscheChargerAccessory } from './ChargerAccessory';
import PorscheConnect, { EngineType, Vehicle } from './porsche-connect';
import { PlatformVehicle, PorscheAccessory } from './PlatformTypes';
import { PlatformVehicle } from './PlatformTypes';

export class PorscheTaycanPlatform implements DynamicPlatformPlugin {
public readonly Service: typeof Service = this.api.hap.Service;
Expand Down
10 changes: 5 additions & 5 deletions src/PlatformTypes.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { PlatformAccessory } from "homebridge";
import { VehicleConfig, VehicleEMobility } from "./porsche-connect";
import { PlatformAccessory } from 'homebridge';
import { VehicleConfig, VehicleEMobility } from './porsche-connect';

export type PlatformVehicle = {
vehicle: VehicleConfig,
accessories: PorscheAccessory[]
}
vehicle: VehicleConfig;
accessories: PorscheAccessory[];
};

export interface PorscheAccessory {
accessory: PlatformAccessory;
Expand Down

0 comments on commit 160b777

Please sign in to comment.