home-assistant / intents

Intents to be used with Home Assistant
https://developers.home-assistant.io/docs/voice/overview/
Creative Commons Attribution 4.0 International
453 stars 516 forks source link

[PT] add expansion rule for luz #2354

Closed P2mb2 closed 3 months ago

P2mb2 commented 3 months ago

Simple addition on expansion rules to avoid using multiple times the same alternates for luz.

Summary by CodeRabbit

coderabbitai[bot] commented 3 months ago
Walkthrough ## Walkthrough The recent updates enhance the natural language processing capabilities of the system by consolidating various terms related to "light" into a single placeholder ``. This change streamlines the sentence structures across multiple intents, improving clarity and consistency while maintaining functionality. Additionally, a new entry for "luz" in the expansion rules allows for better recognition of related expressions, ultimately leading to improved efficiency in processing voice commands. ## Changes | Files | Change Summary | |-----------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------| | `sentences/pt/_common.yaml` | Added a new entry for "luz" in `expansion_rules`, allowing for recognition of variations and synonyms related to light. | | `sentences/pt/light_HassTurnOff.yaml` | Simplified sentence structures by replacing variations of "light" with the placeholder `` for the `HassTurnOff` intent, enhancing clarity and efficiency. | | `sentences/pt/light_HassTurnOn.yaml` | Updated `HassTurnOn` intent to use `` instead of multiple synonyms, streamlining expressions and maintaining intent functionality. |

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)