server/services/google-cast/lib/google_cast.setValue.js
Function setValue
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');