-
Notifications
You must be signed in to change notification settings - Fork 523
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
Add HassGetDate and HassGetTime #2300
Conversation
WalkthroughWalkthroughThe update introduces new intents, Changes
Sequence Diagram(s)Silently ignored generating this section as the changes do not significantly alter control flows or add complex new features. Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (7)
Files skipped from review due to trivial changes (6)
Files skipped from review as they are similar to previous changes (1)
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? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
script/intentfest/generate_day_ordinals.py (1)
1-1
: Add module-level docstring.Provide more detailed information about the purpose and usage of this script.
- """Generate a map for day numbers to ordinal words.""" + """Generate a map for day numbers to ordinal words. This script generates a JSON map of day numbers to their corresponding ordinal words in a specified language. Usage: python generate_day_ordinals.py --language <language_code> """
intents.yaml
Outdated
HassGetDate: | ||
supported: true | ||
domain: homeassistant | ||
description: "Gets the current date" | ||
|
||
HassGetTime: | ||
supported: true | ||
domain: homeassistant | ||
description: "Gets the current time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering Home Assistant also has date & time entities, these names seem very unfortunate for the future.
Wouldn't it be better to use HassGetCurrentDate
and HassGetCurrentTime
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point. I'll change them 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🎉
../Frenck
Add English sentences for two new intents (not yet supported in HA):
HassGetCurrentDate
date
slot value with adatetime
objectHassGetCurrentTime
time
slot value with adatetime
objectNote that
strftime
should not be used since it will use the machine's current locale and not the intent's language.