Skip to content

Commit

Permalink
Merge pull request #1288 from proddy/dev
Browse files Browse the repository at this point in the history
fix for MQTT enum index option leads to error in HA #1280
  • Loading branch information
proddy authored Sep 9, 2023
2 parents 83211e0 + 09ff892 commit 33ea1c6
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 37 deletions.
6 changes: 3 additions & 3 deletions interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@prefresh/vite": "^2.4.1",
"@table-library/react-table-library": "4.1.7",
"@types/lodash-es": "^4.17.9",
"@types/node": "^20.5.9",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/react-router-dom": "^5.3.3",
Expand All @@ -50,12 +50,12 @@
"typescript": "^5.2.2"
},
"devDependencies": {
"@babel/core": "^7.22.15",
"@babel/core": "^7.22.17",
"@preact/preset-vite": "^2.5.0",
"@types/babel__core": "^7",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "^8.48.0",
"eslint": "^8.49.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
104 changes: 71 additions & 33 deletions interface/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,26 @@ __metadata:
languageName: node
linkType: hard

"@babel/core@npm:^7.22.15":
version: 7.22.15
resolution: "@babel/core@npm:7.22.15"
"@babel/core@npm:^7.22.17":
version: 7.22.17
resolution: "@babel/core@npm:7.22.17"
dependencies:
"@ampproject/remapping": ^2.2.0
"@babel/code-frame": ^7.22.13
"@babel/generator": ^7.22.15
"@babel/helper-compilation-targets": ^7.22.15
"@babel/helper-module-transforms": ^7.22.15
"@babel/helper-module-transforms": ^7.22.17
"@babel/helpers": ^7.22.15
"@babel/parser": ^7.22.15
"@babel/parser": ^7.22.16
"@babel/template": ^7.22.15
"@babel/traverse": ^7.22.15
"@babel/types": ^7.22.15
"@babel/traverse": ^7.22.17
"@babel/types": ^7.22.17
convert-source-map: ^1.7.0
debug: ^4.1.0
gensync: ^1.0.0-beta.2
json5: ^2.2.3
semver: ^6.3.1
checksum: fe7457d3b08c478c04003c8b35f23d1718c36152a4524b61b94cd4830d7a5c50c36d3d1155ce258a9fafc37790953b6c7e35a51ddb1079c47890750f1d3db46b
checksum: 9ffd2cb1b860a0651f01927d9e84246860cef2e794bc7181e53770ebf80305e6b5ba5050786d8b44be0dc9832106b4e9c7749c4c05c7f711d7508a5fef9034ce
languageName: node
linkType: hard

Expand Down Expand Up @@ -205,9 +205,9 @@ __metadata:
languageName: node
linkType: hard

"@babel/helper-module-transforms@npm:^7.22.15":
version: 7.22.15
resolution: "@babel/helper-module-transforms@npm:7.22.15"
"@babel/helper-module-transforms@npm:^7.22.17":
version: 7.22.17
resolution: "@babel/helper-module-transforms@npm:7.22.17"
dependencies:
"@babel/helper-environment-visitor": ^7.22.5
"@babel/helper-module-imports": ^7.22.15
Expand All @@ -216,7 +216,7 @@ __metadata:
"@babel/helper-validator-identifier": ^7.22.15
peerDependencies:
"@babel/core": ^7.0.0
checksum: a72c7faca63ce6dc21328f4c05857df142aef4dfe47890d9c83baeca464b2aba01a21ac5473cfd3ebe361dc95fde72e56f6a3d838a566376b962f28bd6707ac2
checksum: 54d14e092bb15e0e95155890e4c2352e5cb97370e9669aa1066a6a066194f6da01d801516f219a66455add7d10c1b6345d7c2ecfce1b8e69213eb2cc4ba94e75
languageName: node
linkType: hard

Expand Down Expand Up @@ -357,6 +357,15 @@ __metadata:
languageName: node
linkType: hard

"@babel/parser@npm:^7.22.16":
version: 7.22.16
resolution: "@babel/parser@npm:7.22.16"
bin:
parser: ./bin/babel-parser.js
checksum: e7b6a7d65e27a08a8be361021c332aa72b989b845c4124e0e2c3ec5810956f8c96baf0f54657d1e1200ee5ec6298b895392d2ff73f9de61418e56c0d2d6f574c
languageName: node
linkType: hard

"@babel/plugin-syntax-jsx@npm:^7.22.5":
version: 7.22.5
resolution: "@babel/plugin-syntax-jsx@npm:7.22.5"
Expand Down Expand Up @@ -461,6 +470,24 @@ __metadata:
languageName: node
linkType: hard

"@babel/traverse@npm:^7.22.17":
version: 7.22.17
resolution: "@babel/traverse@npm:7.22.17"
dependencies:
"@babel/code-frame": ^7.22.13
"@babel/generator": ^7.22.15
"@babel/helper-environment-visitor": ^7.22.5
"@babel/helper-function-name": ^7.22.5
"@babel/helper-hoist-variables": ^7.22.5
"@babel/helper-split-export-declaration": ^7.22.6
"@babel/parser": ^7.22.16
"@babel/types": ^7.22.17
debug: ^4.1.0
globals: ^11.1.0
checksum: c9bfa6d20caf50e529ac9359db4cd4a5c23f28536bf17e2d493135631ab68be456efda94ba71bf568be34c6d8e762b23cfd9f43fd52b09756cb0397446643d17
languageName: node
linkType: hard

"@babel/types@npm:^7.0.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.21.3, @babel/types@npm:^7.22.10, @babel/types@npm:^7.22.11, @babel/types@npm:^7.22.5, @babel/types@npm:^7.8.3":
version: 7.22.11
resolution: "@babel/types@npm:7.22.11"
Expand All @@ -483,6 +510,17 @@ __metadata:
languageName: node
linkType: hard

"@babel/types@npm:^7.22.17":
version: 7.22.17
resolution: "@babel/types@npm:7.22.17"
dependencies:
"@babel/helper-string-parser": ^7.22.5
"@babel/helper-validator-identifier": ^7.22.15
to-fast-properties: ^2.0.0
checksum: ca26bd1df1aa2707af058f70fb52898d31b209a8a5372330013870150182697e5ab45d6d661d433259e52b4e25396ad41d0b428158d5b856a030dc111d000359
languageName: node
linkType: hard

"@emotion/babel-plugin@npm:^11.11.0":
version: 11.11.0
resolution: "@emotion/babel-plugin@npm:11.11.0"
Expand Down Expand Up @@ -818,10 +856,10 @@ __metadata:
languageName: node
linkType: hard

"@eslint/js@npm:8.48.0":
version: 8.48.0
resolution: "@eslint/js@npm:8.48.0"
checksum: c8ac8952f37cccd41b4adc4399a7a3a6a0b4c52d67bc55b412be5b3ffb476343b3463a4df2c1d7b633dbb6e0d5fb277eeaf3ba0de0dcdf6d0ed97fcdd416ba94
"@eslint/js@npm:8.49.0":
version: 8.49.0
resolution: "@eslint/js@npm:8.49.0"
checksum: 40b4255866161e16b09eae1830c8ff7379276659ee7ce039e4708bcf3c5a5fd8b95418d32c355294e6c738f23ab42f3e3a55100dffb389edd5d5233ca47c01b3
languageName: node
linkType: hard

Expand Down Expand Up @@ -863,14 +901,14 @@ __metadata:
languageName: node
linkType: hard

"@humanwhocodes/config-array@npm:^0.11.10":
version: 0.11.10
resolution: "@humanwhocodes/config-array@npm:0.11.10"
"@humanwhocodes/config-array@npm:^0.11.11":
version: 0.11.11
resolution: "@humanwhocodes/config-array@npm:0.11.11"
dependencies:
"@humanwhocodes/object-schema": ^1.2.1
debug: ^4.1.1
minimatch: ^3.0.5
checksum: 9e307a49a5baa28beb243d2c14c145f288fccd6885f4c92a9055707057ec40980242256b2a07c976cfa6c75f7081da111a40a9844d1ca8daeff2302f8b640e76
checksum: 4195f68e485f7d1a7c95cf0f126cc41f7223eeda2f1b46b893123c99b35bb76145c37d25e2ba452d54815ed69bb656c0ce9e343ffa984470c08afa6e82a4713f
languageName: node
linkType: hard

Expand Down Expand Up @@ -1522,10 +1560,10 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:^20.5.9":
version: 20.5.9
resolution: "@types/node@npm:20.5.9"
checksum: a071a19019b4045ba65cbacb3a24fcdf1ef41474fd15fb160a082a4c7aba7643b69c5d681637d2b0ce081f2127ce4332ea4d8bf007595efe8e82ba795872c7d0
"@types/node@npm:^20.6.0":
version: 20.6.0
resolution: "@types/node@npm:20.6.0"
checksum: 0979a218f1862a80ddb7a8ba70498798a72e4861394244657c47bd64ed0c87baa4e0c8ce693bab23e58ec272913438b341de98768dc737491c58e6faff19d955
languageName: node
linkType: hard

Expand Down Expand Up @@ -1743,7 +1781,7 @@ __metadata:
resolution: "EMS-ESP@workspace:."
dependencies:
"@alova/adapter-xhr": ^1.0.1
"@babel/core": ^7.22.15
"@babel/core": ^7.22.17
"@emotion/react": ^11.11.1
"@emotion/styled": ^11.11.0
"@mui/icons-material": ^5.14.8
Expand All @@ -1754,15 +1792,15 @@ __metadata:
"@table-library/react-table-library": 4.1.7
"@types/babel__core": ^7
"@types/lodash-es": ^4.17.9
"@types/node": ^20.5.9
"@types/node": ^20.6.0
"@types/react": ^18.2.21
"@types/react-dom": ^18.2.7
"@types/react-router-dom": ^5.3.3
"@typescript-eslint/eslint-plugin": ^6.6.0
"@typescript-eslint/parser": ^6.6.0
alova: ^2.11.1
async-validator: ^4.2.5
eslint: ^8.48.0
eslint: ^8.49.0
eslint-config-airbnb: ^19.0.4
eslint-config-airbnb-typescript: ^17.1.0
eslint-config-prettier: ^9.0.0
Expand Down Expand Up @@ -3090,15 +3128,15 @@ __metadata:
languageName: node
linkType: hard

"eslint@npm:^8.48.0":
version: 8.48.0
resolution: "eslint@npm:8.48.0"
"eslint@npm:^8.49.0":
version: 8.49.0
resolution: "eslint@npm:8.49.0"
dependencies:
"@eslint-community/eslint-utils": ^4.2.0
"@eslint-community/regexpp": ^4.6.1
"@eslint/eslintrc": ^2.1.2
"@eslint/js": 8.48.0
"@humanwhocodes/config-array": ^0.11.10
"@eslint/js": 8.49.0
"@humanwhocodes/config-array": ^0.11.11
"@humanwhocodes/module-importer": ^1.0.1
"@nodelib/fs.walk": ^1.2.8
ajv: ^6.12.4
Expand Down Expand Up @@ -3133,7 +3171,7 @@ __metadata:
text-table: ^0.2.0
bin:
eslint: bin/eslint.js
checksum: 93517576a212282383bb10647a8d9e502e12d0aa8c781f2d2585c6651b570349a6e4a768f32eb1e2cd948cff0e0e1c519651aa99c9d1a0dc70f1a3eba0512ba2
checksum: 8d6985a8d60379ea714ad35d7a3d8762ac8c37b986c615e9a7c245794faddf68f61f997ba6f5f903d440e92065a56a4f7832a45adc2d4fc6e977026782f25835
languageName: node
linkType: hard

Expand Down
2 changes: 1 addition & 1 deletion src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,7 @@ bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev
if (EMSESP::system_.enum_format() == ENUM_FORMAT_INDEX) {
// use index numbers
for (uint8_t i = 0; i < options_size; i++) {
option_list.add(i);
option_list.add(Helpers::itoa(i)); // as a string
}
snprintf(sample_val, sizeof(sample_val), "0");
} else {
Expand Down

0 comments on commit 33ea1c6

Please sign in to comment.