Psoy
20 Noviembre, 2023 21:23
1
Buenas noches @pierre-gilles
Acabo de actualizar a la 4.31.0, creo que hay un pequeño error en el disparador de escenas, ya no se puede marcar la casilla:
Ejecutar solo cuando se supera el umbral (y no en cada valor enviado)
El mismo error, pero si ya está marcado, no se puede quitar
Una regresión (creo que este error ya había sido corregido)
@pierre-gilles ,
Lo he probado y al quitar lo que corregiste en junio vuelve a funcionar en mi caso
guim31
21 Noviembre, 2023 07:48
6
Estoy de acuerdo. He publicado en el tema del anuncio de la actualización antes de ver sus mensajes…!
b3n.0
21 Noviembre, 2023 08:31
7
De hecho, lo mismo me pasa a mí y también desde Gladys+…
¿Alguien puede crear un issue en GitHub?
Edito: He movido el tema y he cerrado el otro Realmente hay que crear nuevos temas, los temas largos son realmente complicados
guim31
21 Noviembre, 2023 17:49
9
¡Sí, tienes razón, nos hemos dispersado un poco!
Will_71
21 Noviembre, 2023 18:36
10
Yo me encargo de crear el issue
Will_71
21 Noviembre, 2023 20:50
11
Por lo tanto, el problema y la solicitud de extracción
ouvert 08:36PM - 21 Nov 23 UTC
fermé 10:00AM - 27 Nov 23 UTC
In scene trigger on device change, threshold is not clickable. The same bug as t… he one already fixed in June
https://community.gladysassistant.com/t/impossible-de-cocher-la-case-executer-seulement-lorsque-le-seuil-est-passe/8515
master ← William-De71:scene-trigger-threshold
ouvert 08:44PM - 21 Nov 23 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [ ] If your changes affects code, did your write the tests?
- [ ] Are tests passing? (`npm test` on both front/server)
- [ ] Is the linter passing? (`npm run eslint` on both front/server)
- [ ] Did you run prettier? (`npm run prettier` on both front/server)
- [ ] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [ ] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community ([french forum](https://community.gladysassistant.com/)/[english forum](https://en-community.gladysassistant.com/)) for testing before merging.
- [ ] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation? See [the GitHub repo](https://github.com/GladysAssistant/v4-website) and the [website](https://gladysassistant.com).
- [ ] Did you add fake requests data for the demo mode (`front/src/config/demo.js`) so that the demo website is working without a backend? (if needed) See [https://demo.gladysassistant.com](https://demo.gladysassistant.com).
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
### Description of change
PR to fix threshold not clickable on scene trigger
https://github.com/GladysAssistant/Gladys/issues/1940
Will_71:
Du coup l’issue et la PR
¡Gracias por la PR! Efectivamente, esto resuelve el problema, pero en mi opinión el problema es más profundo que eso, no me sorprendería que el problema reapareciera en el futuro.
Creo que el problema proviene de un error de Preact, encontré esta issue de GitHub buscando un poco:
ouvert 11:39AM - 24 Aug 20 UTC
fermé 10:43AM - 16 Jul 26 UTC
duplicate
compat
known issue
### Reproduction
With this example, React creates a controlled input while Pr… eact creates a uncontrolled input.
```js
import React from "preact/compat";
function App() {
return <input type="checkbox" checked={true} />;
}
```
In fact, I can't figure out how to make a controlled checkbox at all.
Not sure if this is a duplicate of #2625 or #1899
### Steps to reproduce
https://codesandbox.io/s/preact-input-uncontrolled-qis0i
Click on the checkbox
### Expected Behavior
Clicking on the checkbox shouldn't change its state (= what React does).
### Actual Behavior
The checkbox can be toggled. `checked={true}` is essentially ignored.
De todos modos, he fusionado la PR porque parece desbloquear la situación, pero hay que vigilarlo
Will_71
22 Noviembre, 2023 19:36
14
Está claro que no es normal tener que modificar esto así. Hay que vigilarlo
Acabo de desplegar en Gladys Plus el parche (como es un parche de frontend, ya está disponible ahora mismo en Gladys Plus)
Una versión para Gladys local llegará más tarde
Psoy
23 Noviembre, 2023 17:46
16
buenas noches @pierre-gilles
Funciona para mí, gracias.
Error corregido en Gladys Assistant 4.31.1:
Salut à tous !
Je viens de sortir Gladys Assistant 4.31.1, une version mineure avec quelques correctifs:
Correction d’un bug assez critique qui empêchait de cocher la case « Exécuter seulement lorsque le seuil est passé » dans les scènes ! Bug corrigé par @Will_71 , merci du fix
Correction d’un bug dans les scènes où le sélecteur de variable dans « continuer seulement si » recouvrait d’autres sélecteurs de variables. Merci @Will_71 pour le fix !
Amélioration des traductions. Merci @cico…