mirror of
https://github.com/koush/scrypted.git
synced 2026-07-08 16:20:37 +01:00
myq: add garagedoor type
This commit is contained in:
4
plugins/myq/package-lock.json
generated
4
plugins/myq/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/myq",
|
||||
"version": "0.1.39",
|
||||
"version": "0.1.40",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/myq",
|
||||
"version": "0.1.39",
|
||||
"version": "0.1.40",
|
||||
"license": "Apache",
|
||||
"dependencies": {
|
||||
"@hjdhjd/myq": "^6.0.4",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/myq",
|
||||
"version": "0.1.39",
|
||||
"version": "0.1.40",
|
||||
"description": "A MyQ Garage plugin for Scrypted",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -8,7 +8,7 @@ import throttle from 'lodash/throttle';
|
||||
const { deviceManager } = sdk;
|
||||
|
||||
function isValidGarageDoor(device_type: string) {
|
||||
return device_type === 'wifigaragedooropener' || device_type === 'virtualgaragedooropener';
|
||||
return device_type === 'wifigaragedooropener' || device_type === 'virtualgaragedooropener' || device_type === 'garagedooropener';
|
||||
}
|
||||
|
||||
class GarageController extends ScryptedDeviceBase implements DeviceProvider, Settings {
|
||||
|
||||
Reference in New Issue
Block a user