diff --git a/devices/device.js b/devices/device.js index 87b280a5..e0a94d59 100644 --- a/devices/device.js +++ b/devices/device.js @@ -1872,6 +1872,11 @@ module.exports = function (RED) { } } + /** + * Updates the status icon of this device node. + * + * @param {boolean} is_local - Indicates whether the current command was issued using local fulfillment. + */ updateStatusIcon(is_local) { const me = this; let text = ''; @@ -2845,10 +2850,12 @@ module.exports = function (RED) { return traits; } - // - // - // - // + /** + * Updates the states of this device with new values. + * + * @param {Object} from_states - The new states values. + * @returns {Array} - Array of the state keys that were modified. + */ updateState(from_states) { const me = this; let modified = []; diff --git a/lib/Auth.js b/lib/Auth.js index 8ce98980..95dbe99a 100755 --- a/lib/Auth.js +++ b/lib/Auth.js @@ -167,7 +167,7 @@ class Auth { /** * Retrieves the duration (in minutes) for which an access token is valid. * - * @return {number} The duration in minutes. + * @returns {number} The duration in minutes. */ getAccessTokenDuration() { return this._accessTokenDuration; diff --git a/lib/SmartHome.js b/lib/SmartHome.js index 6e6520fc..29491cb0 100755 --- a/lib/SmartHome.js +++ b/lib/SmartHome.js @@ -604,7 +604,7 @@ class GoogleSmartHome { * read the local app.js file, parse the version number out of the file and compare the version numbers with each * other. If the version numbers do not match, the user gets a message on Node-RED's debug panel. * - * @param {string} remoteAppJsVersion + * @param {string} remoteAppJsVersion - version number of the script running on the speaker */ checkAppJsVersion(remoteAppJsVersion) { const appJsPath = path.resolve(__dirname, '../local-execution/app.js');