Skip to content

Commit

Permalink
v6.0.0-beta.40
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Jun 20, 2021
1 parent c90f3aa commit beaa30b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-fritz-platform",
"version": "6.0.0-beta.39",
"version": "6.0.0-beta.40",
"description": "Homebridge Plugin to control FritzBox router, smarthome devices and more.",
"main": "index.js",
"funding": [
Expand Down
4 changes: 2 additions & 2 deletions src/accessories/childlock/childlock.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Handler {
states.push(active);
}

state = states.includes(1);
state = !states.includes(1);
} catch (err) {
logger.warn('An error occured during getting state!', `${accessory.displayName} (${subtype})`);
logger.error(err);
Expand Down Expand Up @@ -105,7 +105,7 @@ class Handler {
'DisallowWANAccessByIP',
{
NewIPv4Address: ip,
NewDisallow: state ? 0 : 1, //0: allow - 1: disallow
NewDisallow: state ? 1 : 0, //0: allow - 1: disallow
}
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/custom.types.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ exports.registerWith = (hap) => {
* Characteristic.FallbackInternet
*/
Characteristic.FallbackInternet = function () {
Characteristic.call(this, 'DNS Server', 'ef088934-4ec8-4174-b550-e8a8faaed88c');
Characteristic.call(this, 'Internet Fallback', 'ef088934-4ec8-4174-b550-e8a8faaed88c');
this.setProps({
format: Characteristic.Formats.BOOL,
perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY],
Expand Down

0 comments on commit beaa30b

Please sign in to comment.