Harden thermostat validation and improve Italian responses - #456
Conversation
Normalize numeric input before arithmetic, reject unsupported or out-of-range requests, and improve Italian response agreement. Ensure successful confirmations follow a climate action and document v1.1.7.
|
Thank you for the work on this. Most of it looks great but I do have questions about: I have attempted to keep all of the translation related values in the translations dictionary. Do you think it would be possible to move these additional variables within the Italian definition? Some logic would need to be used for setting the values for the amount based on what language is selected of course. |
|
You're right — this locale-specific data should have lived under the Italian translation, and I should have caught that before submitting. Sorry about that. I've moved the number-word map and singular/plural degree labels under |
|
Thanks for the quick turnaround. I hope to revisit this soon. My work and home life has been insane lately so forgive my tardiness. |
Summary
This updates Thermostat Control to normalize numeric input before arithmetic and reject invalid requests before reporting success.
un/uno/una,duethroughdieci, and decimal commas;grado/gradiagreement;heat_coolranges;climate.set_temperaturebefore emitting a success response;1.1.7and update the changelog.Validation
1.1.6, GREEN on the candidate;git diff --check, and the Docusaurus production build passed;I am a native Italian speaker and personally reviewed the Italian text, complete diff, and test results. AI tools assisted with research, testing, and drafting.