Skip to content

Commit

Permalink
Update gen2-helper.js
Browse files Browse the repository at this point in the history
Fix: error  Trailing spaces not allowed  no-trailing-spaces
  • Loading branch information
Paradoxa authored Sep 12, 2024
1 parent 1046a80 commit fbf1478
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/devices/gen2-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -2753,14 +2753,14 @@ function addProOutputAddon(deviceObj) {

/**
* Adds a generic RGB light definition for Gen 2+ devices
*
*
* This function defines the necessary states and MQTT commands for controlling an RGB light
* device using the Shelly Gen 2 platform. The RGB light can be turned on/off, its brightness
* and color can be adjusted, and light effects can be applied.
*
*
* @param {object} deviceObj - The device object where states and commands are added.
* @param {number} rgbId - The ID of the RGB light (used in MQTT topics and commands).
*
*
* The following states are added:
* - Switch (on/off control)
* - Brightness (brightness level from 0 to 100)
Expand Down Expand Up @@ -2917,16 +2917,16 @@ function addRGB(deviceObj, rgbId) {

/**
* Adds a generic RGBW light definition for Gen 2+ devices
*
*
* This function defines the necessary states and MQTT commands for controlling an RGBW light
* device using the Shelly Gen 2 platform. In addition to the RGB color control, this function
* also includes a separate white channel for adjusting the white light intensity. It supports
* turning the light on/off, adjusting brightness, controlling the RGB color, adjusting the white
* channel intensity, and applying light effects.
*
*
* @param {object} deviceObj - The device object where states and commands are added.
* @param {number} rgbwId - The ID of the RGBW light (used in MQTT topics and commands).
*
*
* The following states are added:
* - Switch (on/off control)
* - Brightness (brightness level from 0 to 100)
Expand Down

0 comments on commit fbf1478

Please sign in to comment.