Skip to content

Commit

Permalink
Add support for the Shelly Plus 2 PM hardware revision 1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexryd committed Aug 9, 2022
1 parent 8c0b1d9 commit d92fc95
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/device-delegates/shelly-plus-2-pm.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ShellyPlus2Pm } from 'shellies-ng';
import {
ShellyPlus2Pm,
ShellyPlus2PmRev1,
} from 'shellies-ng';

import { DeviceDelegate } from './base';

Expand All @@ -17,4 +20,8 @@ export class ShellyPlus2PmDelegate extends DeviceDelegate {
}
}

DeviceDelegate.registerDelegate(ShellyPlus2PmDelegate, ShellyPlus2Pm);
DeviceDelegate.registerDelegate(
ShellyPlus2PmDelegate,
ShellyPlus2Pm,
ShellyPlus2PmRev1,
);

0 comments on commit d92fc95

Please sign in to comment.