Skip to content

Commit

Permalink
Revert "feat: Add new ember adapter implementation, targeting EZSP …
Browse files Browse the repository at this point in the history
…13 and above (#918)"

This reverts commit c36d051.
  • Loading branch information
Koenkk committed Feb 18, 2024
1 parent 4e6ee7a commit 4f16895
Show file tree
Hide file tree
Showing 31 changed files with 4 additions and 24,152 deletions.
5 changes: 2 additions & 3 deletions src/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ abstract class Adapter extends events.EventEmitter {
const {DeconzAdapter} = await import('./deconz/adapter');
const {ZiGateAdapter} = await import('./zigate/adapter');
const {EZSPAdapter} = await import('./ezsp/adapter');
const {EmberAdapter} = await import('./ember/adapter');
type AdapterImplementation = (typeof ZStackAdapter | typeof DeconzAdapter | typeof ZiGateAdapter
| typeof EZSPAdapter | typeof EmberAdapter);
| typeof EZSPAdapter);

let adapters: AdapterImplementation[];
const adapterLookup = {zstack: ZStackAdapter, deconz: DeconzAdapter, zigate: ZiGateAdapter,
ezsp: EZSPAdapter, ember: EmberAdapter};
ezsp: EZSPAdapter};
if (serialPortOptions.adapter && serialPortOptions.adapter !== 'auto') {
if (adapterLookup.hasOwnProperty(serialPortOptions.adapter)) {
adapters = [adapterLookup[serialPortOptions.adapter]];
Expand Down
Loading

0 comments on commit 4f16895

Please sign in to comment.