Skip to content

Commit 1e93c05

Browse files
committed
chore: release v7.9.1
* (klein0r) Configurable trigger warning limit (default: 100 per script) * (klein0r) Allow to use objects in create state blocks for common * (klein0r) Added warning if latitude or longitude is not configured correctly
1 parent e7fdeee commit 1e93c05

File tree

14 files changed

+45
-42
lines changed

14 files changed

+45
-42
lines changed

CHANGELOG_OLD.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
The newest change log is in README.md
2+
## 7.6.2 (2024-01-02)
3+
4+
* (klein0r) Added missing console.info()
5+
* (klein0r) Added missing type hints
6+
* (klein0r) Creation of astro states is now optional
7+
* (klein0r) Fixed logging of objects/sets
8+
29
## 7.6.0 (2023-12-26)
310

411
* (klein0r) Added schedules by state value (scheduleById)

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the
4646
<!--
4747
### **WORK IN PROGRESS**
4848
-->
49-
### **WORK IN PROGRESS**
49+
### 7.9.1 (2024-03-15)
5050

5151
* (klein0r) Configurable trigger warning limit (default: 100 per script)
5252
* (klein0r) Allow to use objects in create state blocks for common
@@ -74,13 +74,6 @@ Since v5.5.0 of the JavaScript adapter the following locations (relative to the
7474

7575
* (klein0r) Fixed bug in formatTimeDiff Blockly
7676

77-
### 7.6.2 (2024-01-02)
78-
79-
* (klein0r) Added missing console.info()
80-
* (klein0r) Added missing type hints
81-
* (klein0r) Creation of astro states is now optional
82-
* (klein0r) Fixed logging of objects/sets
83-
8477
## License
8578
The MIT License (MIT)
8679

admin/adminWords.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/asset-manifest.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"files": {
3-
"main.js": "/static/js/main.1ba668af.js",
3+
"main.js": "/static/js/main.3fb899c6.js",
44
"static/css/864.42bfc5f3.chunk.css": "/static/css/864.42bfc5f3.chunk.css",
5-
"static/js/864.d74c524e.chunk.js": "/static/js/864.d74c524e.chunk.js",
5+
"static/js/864.475570a4.chunk.js": "/static/js/864.475570a4.chunk.js",
66
"static/js/805.7c367e53.chunk.js": "/static/js/805.7c367e53.chunk.js",
77
"static/js/431.a62490cf.chunk.js": "/static/js/431.a62490cf.chunk.js",
88
"static/js/702.1692c400.chunk.js": "/static/js/702.1692c400.chunk.js",
@@ -160,9 +160,9 @@
160160
"static/media/Garage Doors.svg": "/static/media/Garage Doors.0c2a1cfca7ad1ea59625.svg",
161161
"static/media/Outdoor Blinds.svg": "/static/media/Outdoor Blinds.37b85a9c060a4af48da9.svg",
162162
"static/media/Upstairs.svg": "/static/media/Upstairs.441813e54e0daca0882d.svg",
163-
"main.1ba668af.js.map": "/static/js/main.1ba668af.js.map",
163+
"main.3fb899c6.js.map": "/static/js/main.3fb899c6.js.map",
164164
"864.42bfc5f3.chunk.css.map": "/static/css/864.42bfc5f3.chunk.css.map",
165-
"864.d74c524e.chunk.js.map": "/static/js/864.d74c524e.chunk.js.map",
165+
"864.475570a4.chunk.js.map": "/static/js/864.475570a4.chunk.js.map",
166166
"805.7c367e53.chunk.js.map": "/static/js/805.7c367e53.chunk.js.map",
167167
"431.a62490cf.chunk.js.map": "/static/js/431.a62490cf.chunk.js.map",
168168
"702.1692c400.chunk.js.map": "/static/js/702.1692c400.chunk.js.map",
@@ -195,6 +195,6 @@
195195
"96.fe9915d5.chunk.js.map": "/static/js/96.fe9915d5.chunk.js.map"
196196
},
197197
"entrypoints": [
198-
"static/js/main.1ba668af.js"
198+
"static/js/main.3fb899c6.js"
199199
]
200200
}

admin/google-blockly/own/blocks_system.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -640,15 +640,11 @@ Blockly.JavaScript['create'] = function(block) {
640640
let paraC = '';
641641

642642
if (value !== null && value !== '') {
643-
paraV = ', ' + value;
643+
paraV = `, ${value}`;
644644
}
645645

646646
if (common !== null && common !== '') {
647-
if (typeof common === 'object') {
648-
paraC = `, JSON.parse(${JSON.stringify(common)})`;
649-
} else {
650-
paraC = `, JSON.parse(${common})`;
651-
}
647+
paraC = `, ((common) => typeof common !== 'object' ? JSON.parse(common) : common)(${common})`;
652648
}
653649

654650
return `createState('${name}'${paraV}${paraC}, async () => {\n` +

admin/index_m.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,12 @@
530530
<label for="maxSetStatePerMinute" class="translate">Maximum setState requests per Minute per Script</label>
531531
</div>
532532
</div>
533+
<div class="row">
534+
<div class="input-field col s12">
535+
<input class="value validate" placeholder="100" id="maxTriggersPerScript" type="number" min="20" max="100000">
536+
<label for="maxTriggersPerScript" class="translate">Maximum triggers per Script (until warning)</label>
537+
</div>
538+
</div>
533539
<div class="row">
534540
<div class="input-field col s12">
535541
<input type="checkbox" id="allowSelfSignedCerts" class="value" />

admin/static/js/864.d74c524e.chunk.js renamed to admin/static/js/864.475570a4.chunk.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/static/js/864.d74c524e.chunk.js.map renamed to admin/static/js/864.475570a4.chunk.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/static/js/main.1ba668af.js renamed to admin/static/js/main.3fb899c6.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

admin/static/js/main.1ba668af.js.map renamed to admin/static/js/main.3fb899c6.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)