server/services/tasmota/lib/http/tasmota.http.status.js
Function createDevice
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const createDevice = (networkAddress, serviceId, username, password) => {
const externalId = `tasmota:${networkAddress}`;
const device = {
name: networkAddress,
external_id: externalId,