Adjust code to airbnb style guide, including eslint rules and prettier configuration for code base
This commit is contained in:
parent
1b55cabf63
commit
281acd6ad8
23 changed files with 919 additions and 2225 deletions
10
plejd/SceneStep.js
Normal file
10
plejd/SceneStep.js
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class SceneStep {
|
||||
constructor(step) {
|
||||
this.sceneId = step.sceneId;
|
||||
this.deviceId = step.deviceId;
|
||||
this.state = step.state === 'On' ? 1 : 0;
|
||||
this.brightness = step.value;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = SceneStep;
|
||||
Loading…
Add table
Add a link
Reference in a new issue