Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PT] add expansion rule for luz #2354

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

P2mb2
Copy link
Contributor

@P2mb2 P2mb2 commented Jul 26, 2024

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

Summary by CodeRabbit

  • New Features

    • Enhanced light recognition capabilities by adding a new rule for the term "luz" and its synonyms in the system.
    • Streamlined sentence structures for light control intents, improving clarity and efficiency in processing voice commands related to turning on and off lights.
  • Bug Fixes

    • Improved natural language processing for light-related commands through simplified syntax.

Copy link

coderabbitai bot commented Jul 26, 2024

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 <luz>. 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 <luz> for the HassTurnOff intent, enhancing clarity and efficiency.
sentences/pt/light_HassTurnOn.yaml Updated HassTurnOn intent to use <luz> 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

@abmantis abmantis merged commit 8f4da6c into home-assistant:main Aug 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants