Skip to content

Commit

Permalink
Be consistent with default device exports
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvandevijver committed Nov 6, 2024
1 parent fd6bbb2 commit 4432386
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/dimmer/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
TuyaDeviceSpecificationResponse,
} from '../../types/TuyaApiTypes';
import type { StandardDeviceFlowArgs, StandardFlowArgs } from '../../types/TuyaTypes';
import TuyaOAuth2DeviceDimmer from './device';
import type TuyaOAuth2DeviceDimmer from './device';
import { SIMPLE_DIMMER_CAPABILITIES } from './TuyaDimmerConstants';
import TRANSLATIONS from './translations.json';

Expand Down
3 changes: 1 addition & 2 deletions drivers/infrared_remote/device.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import TuyaOAuth2Device from '../../lib/TuyaOAuth2Device';

class TuyaOAuth2DeviceIrController extends TuyaOAuth2Device {
export default class TuyaOAuth2DeviceIrController extends TuyaOAuth2Device {
async onOAuth2Init(): Promise<void> {
await super.onOAuth2Init();

Expand Down Expand Up @@ -35,5 +35,4 @@ class TuyaOAuth2DeviceIrController extends TuyaOAuth2Device {
}
}

export default TuyaOAuth2DeviceIrController;
module.exports = TuyaOAuth2DeviceIrController;
2 changes: 1 addition & 1 deletion drivers/infrared_remote/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TuyaOAuth2Client from '../../lib/TuyaOAuth2Client';
import { TuyaDeviceResponse, TuyaIrRemoteKeysResponse, TuyaIrRemoteResponse } from '../../types/TuyaApiTypes';
import * as TuyaOAuth2Util from '../../lib/TuyaOAuth2Util';
import { StandardDeviceFlowArgs } from '../../types/TuyaTypes';
import TuyaOAuth2DeviceIrController from './device';
import type TuyaOAuth2DeviceIrController from './device';
import { ArgumentAutocompleteResults } from 'homey/lib/FlowCard';

type PairingRemote = TuyaIrRemoteResponse & {
Expand Down

0 comments on commit 4432386

Please sign in to comment.