Showing 3 of 19 total issues
Function init
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function init() {
const router = require('express').Router();
const db = require('../db/index');
const temperateController = require('./controller/temperature.controller');
const switchController = require('./controller/switch.controller');
Function getServices
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getServices() {
debugger;
const services = [];
this.CurrentHeatingCoolingState = Characteristic.CurrentHeatingCoolingState;
this.TargetHeatingCoolingState = Characteristic.TargetHeatingCoolingState;
Function temp
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function temp() {
if (promise) return promise;
promise = new Promise((resolve) => {
console.log('python read temp');