Fix for michaelwoods/onstar2mqtt#218
Also added two additional alert options: alertFlash alertHonk
This commit is contained in:
parent
f69adb279e
commit
b20be30d6f
@ -71,14 +71,26 @@ class Commands {
|
||||
return this.onstar.cancelStart();
|
||||
}
|
||||
|
||||
async alert({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH],
|
||||
delay = 0, duration = 1, override = []}) {
|
||||
return this.onstar.alert({
|
||||
action,
|
||||
delay,
|
||||
duration,
|
||||
override
|
||||
});
|
||||
//async alert({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH],
|
||||
// delay = 0, duration = 1, override = []}) {
|
||||
// return this.onstar.alert({
|
||||
// action,
|
||||
// delay,
|
||||
// duration,
|
||||
// override
|
||||
// });
|
||||
//}
|
||||
|
||||
async alert() {
|
||||
return this.onstar.alert();
|
||||
}
|
||||
|
||||
async alertFlash({action = [Commands.CONSTANTS.ALERT_ACTION.FLASH]}) {
|
||||
return this.onstar.alert({action});
|
||||
}
|
||||
|
||||
async alertHonk({action = [Commands.CONSTANTS.ALERT_ACTION.HONK]}) {
|
||||
return this.onstar.alert({action});
|
||||
}
|
||||
|
||||
async cancelAlert() {
|
||||
@ -123,4 +135,4 @@ class Commands {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Commands;
|
||||
module.exports = Commands;
|
||||
|
Loading…
Reference in New Issue
Block a user