GladysProject/Gladys

View on GitHub
server/services/tasmota/lib/http/tasmota.http.status.js

Summary

Maintainability
A
1 hr
Test Coverage

Function createDevice has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const createDevice = (networkAddress, serviceId, username, password) => {
  const externalId = `tasmota:${networkAddress}`;
  const device = {
    name: networkAddress,
    external_id: externalId,
Severity: Minor
Found in server/services/tasmota/lib/http/tasmota.http.status.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status