GladysProject/Gladys

View on GitHub
server/services/google-cast/lib/google_cast.setValue.js

Summary

Maintainability
A
1 hr
Test Coverage

Function setValue has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function setValue(device, deviceFeature, value) {
  const deviceName = device.external_id.split(':')[1];
  const ipAddress = this.deviceIpAddresses.get(deviceName);
  if (!ipAddress) {
    throw new Error('Device not found on network');
Severity: Minor
Found in server/services/google-cast/lib/google_cast.setValue.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status