myq: add garagedoor type

This commit is contained in:
Koushik Dutta
2021-11-06 13:56:03 -07:00
parent 9edee3b1d4
commit 11545a34bb
3 changed files with 4 additions and 4 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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 {