Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JuniperChris929 committed Feb 25, 2024
1 parent ce359f2 commit 3b8d3b8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/datapoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const devices = {
shellywalldisplay,
// Gen 3
shellymini1g3,
shelly1pmminig3,
shelly1pmminig3
};

const deviceTypes = {
Expand Down Expand Up @@ -177,10 +177,10 @@ const deviceTypes = {
shellypmmini: ['shellypmmini'],
shelly1mini: ['shelly1mini'],
shelly1pmmini: ['shelly1pmmini'],
shellywalldisplay: ['ShellyWallDisplay'],
shellywalldisplay: ['shellywalldisplay'],
// Gen 3
shellymini1g3: ['shellymini1g3'],
shelly1pmminig3: ['shelly1pmminig3'],
shelly1pmminig3: ['shelly1pmminig3']
};

const deviceGen = {
Expand Down Expand Up @@ -239,7 +239,7 @@ const deviceGen = {
shellywalldisplay: 2,
// Gen 3
shellymini1g3: 3,
shelly1pmminig3: 3,
shelly1pmminig3: 3
};

// https://shelly.cloud/knowledge-base/devices/
Expand Down Expand Up @@ -299,7 +299,7 @@ const deviceKnowledgeBase = {
shellywalldisplay: 'https://kb.shelly.cloud/knowledge-base/shelly-wall-display',
// Gen 3
shellymini1g3: 'https://kb.shelly.cloud/knowledge-base/shelly-1-mini-gen3',
shelly1pmminig3: 'https://kb.shelly.cloud/knowledge-base/shelly-1pm-mini-gen3',
shelly1pmminig3: 'https://kb.shelly.cloud/knowledge-base/shelly-1pm-mini-gen3'
};

/**
Expand All @@ -319,7 +319,7 @@ const pollTime = {
shellymotion2: 3600,
// Gen 2
shellyplusht: 3600,
shellyplussmoke: 3600,
shellyplussmoke: 3600
};

/**
Expand Down Expand Up @@ -393,7 +393,7 @@ function getDeviceTypeByClass(deviceClass) {

function getDeviceClassByType(deviceType) {
return Object.keys(deviceTypes).find(
(key) => deviceTypes[key].indexOf(deviceType) !== -1,
(key) => deviceTypes[key].indexOf(deviceType) !== -1
);
}

Expand Down Expand Up @@ -430,5 +430,5 @@ module.exports = {
getKnowledgeBaseUrlByClass,
getDeviceGen,
getDeviceByClass,
getPolltime,
getPolltime
};

0 comments on commit 3b8d3b8

Please sign in to comment.