Skip to content

Commit

Permalink
chore: release v1.10.5
Browse files Browse the repository at this point in the history
* (arteck) icon ota device update
* (arteck) icon fix
  • Loading branch information
arteck committed Jun 21, 2024
1 parent c46f414 commit 154a3ad
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 101 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ You can thank the authors by these links:
* to Arthur Rupp https://paypal.me/ArthurRupp

-----------------------------------------------------------------------------------------------------

## Changelog

### 1.10.5 (2024-06-21)
* (arteck) icon ota device update
* (arteck) icon fix

### 1.10.4 (2024-04-20)
Expand Down
28 changes: 14 additions & 14 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "zigbee",
"version": "1.10.4",
"version": "1.10.5",
"news": {
"1.10.5": {
"en": "icon ota device update\nicon fix",
"de": "icon ota device update\nsymbol fix",
"ru": "обновление значок ota\nзначок",
"pt": "atualização do dispositivo do ícone ota\ncorreção do ícone",
"nl": "pictogram ota apparaat update\npictogramfix",
"fr": "icône ota mise à jour du périphérique\ncorrection de l'icône",
"it": "icona ota aggiornamento del dispositivo\nicona fix",
"es": "icono ota actualización del dispositivo\nicono de fijación",
"pl": "icon ota aktualizacji urządzenia\nikona fix",
"uk": "ota пристрій оновлення\nфіксатор ікони",
"zh-cn": "图标 ota 设备更新\n图标修复"
},
"1.10.4": {
"en": "core update\ndependency update",
"de": "kern-update\naktualisierung der abhängigkeit",
Expand Down Expand Up @@ -80,19 +93,6 @@
"pl": "configure corr dla niektórych urządzeń",
"uk": "налаштовувати корр для деяких пристроїв",
"zh-cn": "一些设备的corr配置"
},
"1.9.6": {
"en": "corr ikea bug \ntrv child lock works",
"de": "corr ikea bug\nkinderschlösser funktioniert",
"ru": "корр ikea баг\ntrv детские замки работает",
"pt": "corr ikea bug\ntrabalhos de bloqueio de crianças",
"nl": "_\nhet kinderslot werkt",
"fr": "corr ikea bug\nverrouillage enfant trv fonctionne",
"it": "corr ikea bug\ntrv bambino serratura lavori",
"es": "corr ikea bug\ntrv niño cerradura funciona",
"pl": "kor ikea bug\npracuje w trv childlock",
"uk": "ikea помилка\ntrv дитячих замків",
"zh-cn": "绑架\n童 工"
}
},
"titleLang": {
Expand Down
2 changes: 1 addition & 1 deletion lib/ota.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class Ota {
};

const from_ = await this.readSoftwareBuildIDAndDateCode(device.device, false);
await device.mapped.ota.updateToLatest(device.device, onProgress);
const fileVersion = await device.mapped.ota.updateToLatest(device.device, onProgress);
const to = await this.readSoftwareBuildIDAndDateCode(device.device, true);
const [fromS, toS] = [JSON.stringify(from_), JSON.stringify(to)];
result.status = 'success';
Expand Down
6 changes: 3 additions & 3 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ function getDeviceIcon(definition) {
if (icon) {
icon = icon.replace('${model}', sanitizeImageParameter(definition.model));
}
// if (!icon) {
// icon = `https://www.zigbee2mqtt.io/images/devices/${sanitizeImageParameter(definition.model)}.jpg`;
// }
// if (!icon) {
// icon = `https://www.zigbee2mqtt.io/images/devices/${sanitizeImageParameter(definition.model)}.jpg`;
// }
if (!icon) {
icon = `https://www.zigbee2mqtt.io/images/devices/${sanitizeImageParameter(definition.model)}.png`;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/zigbeecontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ class ZigbeeController extends EventEmitter {
cfg.disableDefaultResponse = true;

if (cmd === 'read' && !Array.isArray(zclData)) {
/* // needs to be iterable (string[] | number [])
/* // needs to be iterable (string[] | number [])
zclData[Symbol.iterator] = function* () {
let k;
for (k in this) {
Expand Down
Loading

0 comments on commit 154a3ad

Please # to comment.