Skip to content

Commit

Permalink
Foxed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Sep 25, 2023
1 parent bb7d863 commit eeb8b30
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2,222 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ States:
### **WORK IN PROGRESS**
-->
## Changelog
### 3.0.2 (2023-08-13)
### **WORK IN PROGRESS**
* (bluefox/Bettman66) Added migration of password on JSON Config

### 2.5.7 (2023-07-07)
Expand Down
15 changes: 1 addition & 14 deletions io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
"name": "sonoff",
"version": "3.0.2",
"news": {
"3.0.2": {
"en": "Added migration of password on JSON Config",
"de": "Migration von Passwort auf JSON Config hinzugefügt",
"ru": "Добавлена миграция пароля на JSON Config",
"pt": "Adicionado migração de senha em JSON Config",
"nl": "Vermelding van wachtwoord op JSON Config",
"fr": "Ajout de la migration de mot de passe sur JSON Config",
"it": "Aggiunta migrazione di password su JSON Config",
"es": "Migración agregada de contraseña en JSON Config",
"pl": "Dostęp do migracji haseł JSON Config",
"uk": "Додано міграції пароля на JSON Config",
"zh-cn": "A. 增加联索行动密码的移徙"
},
"2.5.7": {
"en": "Disabled the logging of username and password during connection errors\nadded json config",
"de": "Deaktiviert die Protokollierung von Benutzername und Passwort während der Verbindungsfehler\nadd json config",
Expand Down Expand Up @@ -163,7 +150,7 @@
"port": 1883,
"bind": "0.0.0.0",
"user": "",
"pass": "",
"password": "",
"timeout": 300,
"TELE_SENSOR": true,
"TELE_STATE": false,
Expand Down
5 changes: 2 additions & 3 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -1731,9 +1731,8 @@ function MQTTServer(adapter) {
});
});

server.on('error', err => {
adapter.log.error(`Can not start Server ${err}`);
});
server.on('error', err =>
adapter.log.error(`Can not start Server ${err}`));

config.port = parseInt(config.port, 10) || 1883;

Expand Down
10 changes: 5 additions & 5 deletions test/lib/mqttClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ function Client(cbConnected, cbChanged, config) {
/*that.client.publish('mqtt/0/test', 'Roger1');
client.publish('test/out/testMessage1', 'Roger1');
client.publish('test/out/testMessage2', 'Roger2');
client.publish('test/in/testMessage3', 'Roger3');
client.publish('test/in/testMessage3', 'Roger3');
client.publish('test/in/testMessage4', 'Roger4');*/

/*client.publish('arduino/kitchen/out/temperature', '10.1');
/*client.publish('arduino/kitchen/out/temperature', '10.1');
client.publish('arduino/kitchen/out/humidity', '56');
// Current light state
client.publish('arduino/kitchen/in/lightActor', 'false');
client.publish('arduino/kitchen/in/lightActor', 'false');
client.subscribe('arduino/kitchen/in/#');*/
//client.subscribe('arduino/kitchen/in/updateInterval');
Expand All @@ -37,7 +37,7 @@ function Client(cbConnected, cbChanged, config) {
}
});
this.client.on('close', err => {
if (err) console.error('Connection closed: ' + err);
if (err) console.error(`Connection closed: ${err}`);
// message is Buffer
if (cbConnected) {
cbConnected(false);
Expand All @@ -47,7 +47,7 @@ function Client(cbConnected, cbChanged, config) {
});

this.client.on('error', error => {
console.error('Test MQTT Client error: ' + error);
console.error(`Test MQTT Client error: ${error}`);
});

this.publish = (topic, message, qos, retain, cb) => {
Expand Down
Loading

0 comments on commit eeb8b30

Please sign in to comment.