Skip to content

Commit

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

* New ember adapter implementation targeting EZSP 13 and above

* Fix CI.

* Tentative CI test fix.
  • Loading branch information
Nerivec authored Feb 18, 2024
1 parent e164b9c commit c36d051
Show file tree
Hide file tree
Showing 31 changed files with 24,152 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ 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 EZSPAdapter | typeof EmberAdapter);

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

0 comments on commit c36d051

Please sign in to comment.