Skip to content

Commit

Permalink
release v5.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
grzegorz914 committed Aug 18, 2024
1 parent 69e3b6b commit 2f17329
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Note - after update to 3.15.x need remove the accessory frome Home app and add it again

## [5.0.2] - (18.08.2024)

## Changes

- fix correct catch error

## [5.0.1] - (14.08.2024)

## Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"displayName": "Denon TV",
"name": "homebridge-denon-tv",
"version": "5.0.1",
"version": "5.0.2",
"description": "Homebridge plugin to control Denon/Marantz AV Receivers.",
"license": "MIT",
"author": "grzegorz914",
Expand Down
6 changes: 3 additions & 3 deletions src/denon.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class DENON extends EventEmitter {

return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
};

Expand Down Expand Up @@ -417,7 +417,7 @@ class DENON extends EventEmitter {

return inputsArr;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
}
};

Expand All @@ -427,7 +427,7 @@ class DENON extends EventEmitter {
await this.axiosInstance(path);
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
};
};
Expand Down
8 changes: 4 additions & 4 deletions src/mainzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ class MainZone extends EventEmitter {
this.televisionService.setCharacteristic(Characteristic.DisplayOrder, Encode(1, displayOrder).toString('base64'));
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -411,7 +411,7 @@ class MainZone extends EventEmitter {
const debug = !this.enableDebugMode ? false : this.emit('debug', `Saved data: ${JSON.stringify(data, null, 2)}`);
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -420,7 +420,7 @@ class MainZone extends EventEmitter {
const data = await fsPromises.readFile(path);
return data;
} catch (error) {
this.emitDeviceInfo('error', `Read saved data error: ${error}`);
throw new Error( `Read saved data error: ${error}`);
};
}

Expand Down Expand Up @@ -1002,7 +1002,7 @@ class MainZone extends EventEmitter {

return accessory;
} catch (error) {
this.emitDeviceInfo('error', error)
throw new Error( error)
};
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/surround.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ class Surround extends EventEmitter {
this.televisionService.setCharacteristic(Characteristic.DisplayOrder, Encode(1, displayOrder).toString('base64'));
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -379,7 +379,7 @@ class Surround extends EventEmitter {
const debug = !this.enableDebugMode ? false : this.emit('debug', `Saved data: ${JSON.stringify(data, null, 2)}`);
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -388,7 +388,7 @@ class Surround extends EventEmitter {
const data = await fsPromises.readFile(path);
return data;
} catch (error) {
this.emitDeviceInfo('error', `Read saved data error: ${error}`);
throw new Error( `Read saved data error: ${error}`);
};
}

Expand Down Expand Up @@ -857,7 +857,7 @@ class Surround extends EventEmitter {

return accessory;
} catch (error) {
this.emitDeviceInfo('error', error)
throw new Error( error)
};
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/zone2.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class Zone2 extends EventEmitter {
this.televisionService.setCharacteristic(Characteristic.DisplayOrder, Encode(1, displayOrder).toString('base64'));
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -409,7 +409,7 @@ class Zone2 extends EventEmitter {
const debug = !this.enableDebugMode ? false : this.emit('debug', `Saved data: ${JSON.stringify(data, null, 2)}`);
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -418,7 +418,7 @@ class Zone2 extends EventEmitter {
const data = await fsPromises.readFile(path);
return data;
} catch (error) {
this.emitDeviceInfo('error', `Read saved data error: ${error}`);
throw new Error( `Read saved data error: ${error}`);
};
}

Expand Down Expand Up @@ -915,7 +915,7 @@ class Zone2 extends EventEmitter {

return accessory;
} catch (error) {
this.emitDeviceInfo('error', error)
throw new Error( error)
};
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/zone3.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class Zone3 extends EventEmitter {
this.televisionService.setCharacteristic(Characteristic.DisplayOrder, Encode(1, displayOrder).toString('base64'));
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -409,7 +409,7 @@ class Zone3 extends EventEmitter {
const debug = !this.enableDebugMode ? false : this.emit('debug', `Saved data: ${JSON.stringify(data, null, 2)}`);
return true;
} catch (error) {
this.emitDeviceInfo('error', error);
throw new Error( error);
};
}

Expand All @@ -418,7 +418,7 @@ class Zone3 extends EventEmitter {
const data = await fsPromises.readFile(path);
return data;
} catch (error) {
this.emitDeviceInfo('error', `Read saved data error: ${error}`);
throw new Error( `Read saved data error: ${error}`);
};
}

Expand Down Expand Up @@ -914,7 +914,7 @@ class Zone3 extends EventEmitter {

return accessory;
} catch (error) {
this.emitDeviceInfo('error', error)
throw new Error( error)
};
}
};
Expand Down

0 comments on commit 2f17329

Please sign in to comment.