Merge pull request #2106 from proddy/dev

minor cleanup
This commit is contained in:
Proddy
2024-10-17 10:32:11 +02:00
committed by GitHub
5 changed files with 9 additions and 8 deletions

View File

@@ -47,6 +47,7 @@ For more details go to [www.emsesp.org](https://www.emsesp.org/).
- entity for low-temperature boilers pump start temp (pumpOnTemp) #2088 [#2088](https://github.com/emsesp/EMS-ESP32/issues/2088)
- internal ESP32 temperature sensor on the S3 [#2077](https://github.com/emsesp/EMS-ESP32/issues/2077)
- MQTT status topic (used in connect and last will) set to Retain [#2086](https://github.com/emsesp/EMS-ESP32/discussions/2086)
- Czech language [2096](https://github.com/emsesp/EMS-ESP32/issues/2096)
## Fixed

View File

@@ -47,7 +47,7 @@
"@preact/preset-vite": "^2.9.1",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/formidable": "^3",
"@types/node": "^22.7.5",
"@types/node": "^22.7.6",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.1",
"@types/react-router-dom": "^5.3.3",

View File

@@ -9,7 +9,7 @@ export const usePersistState = <T>(
const local_storage_value_str = localStorage.getItem('state:' + id);
// If there is a value stored in localStorage, use that
if (local_storage_value_str) {
return JSON.parse(local_storage_value_str);
return JSON.parse(local_storage_value_str) as T;
}
// Otherwise use initial_value that was passed to the function
return initial_value;

View File

@@ -1685,12 +1685,12 @@ __metadata:
languageName: node
linkType: hard
"@types/node@npm:^22.7.5":
version: 22.7.5
resolution: "@types/node@npm:22.7.5"
"@types/node@npm:^22.7.6":
version: 22.7.6
resolution: "@types/node@npm:22.7.6"
dependencies:
undici-types: "npm:~6.19.2"
checksum: 10c0/cf11f74f1a26053ec58066616e3a8685b6bcd7259bc569738b8f752009f9f0f7f85a1b2d24908e5b0f752482d1e8b6babdf1fbb25758711ec7bb9500bfcd6e60
checksum: 10c0/d4406a63afce981c363fb1d1954aaf1759ad2d487c0833ebf667565ea4e45ff217d6fab4b5343badbdeccdf9d2e4a0841d633e0c929ceabcb33c288663dd0c73
languageName: node
linkType: hard
@@ -1917,7 +1917,7 @@ __metadata:
"@table-library/react-table-library": "npm:4.1.7"
"@trivago/prettier-plugin-sort-imports": "npm:^4.3.0"
"@types/formidable": "npm:^3"
"@types/node": "npm:^22.7.5"
"@types/node": "npm:^22.7.6"
"@types/react": "npm:^18.3.11"
"@types/react-dom": "npm:^18.3.1"
"@types/react-router-dom": "npm:^5.3.3"

View File

@@ -1 +1 @@
#define EMSESP_APP_VERSION "3.7.0-dev.45"
#define EMSESP_APP_VERSION "3.7.0-dev.46"