Closed synesthesiam closed 1 month ago
script/intentfest/parse.py
73-73: Use `dict` instead of `Dict` for type annotation (UP006) Replace with `dict` --- 75-75: Unnecessary open mode parameters (UP015) Remove open mode parameters --- 78-78: Use of `assert` detected (S101) --- 90-90: Trailing comma missing (COM812) Add trailing comma --- 105-105: Trailing comma missing (COM812) Add trailing comma --- 108-108: Trailing comma missing (COM812) Add trailing comma
sentences/en/homeassistant_HassStartTimer.yaml (1)
`11-15`: **Expanded timer setting expressions approved.** The changes successfully integrate additional determiners ("a", "the", "my") into the timer setting expressions, enhancing the natural language processing capabilities and aligning with the PR objectives.script/intentfest/parse.py (3)
`12-12`: **Updated import statement for `recognize_all`.** The change from `recognize` to `recognize_all` is noted and aligns with the new functionality to handle multiple matches, as described in the PR. --- `52-56`: **Addition of `--all` flag to parser arguments is approved.** This addition allows the script to handle multiple matches as intended, enhancing the script's flexibility in parsing inputs. --- `89-115`: **Enhanced parsing logic to accommodate `--all` flag.** The modifications in the parsing logic to utilize the `recognize_all` function and handle the `--all` flag effectively are correctly implemented. The addition of `text_chunks_matched` to the output dictionary is a good enhancement for debugging and detailed analysis. [APROVED]Tools
Ruff
90-90: Trailing comma missing (COM812) Add trailing comma --- 105-105: Trailing comma missing (COM812) Add trailing comma --- 108-108: Trailing comma missing (COM812) Add trailing commaintents.yaml (2)
`368-371`: **Updated `HassMediaPrevious` intent to supported status.** The changes correctly reflect the PR's objective to mark `HassMediaPrevious` as supported and update its description to align with its functionality. --- `380-393`: **Corrected and detailed `HassSetVolume` intent.** The update to make `HassSetVolume` supported, along with the detailed description and the required `volume_level` slot, accurately reflects the changes intended in the PR. This enhances the clarity and functionality of the intent.
HassMediaPrevious
as supported--all
option to parse script to show all possible matches (not just the first)Summary by CodeRabbit
New Features
media_player
domain functionality by swappingHassMediaPrevious
andHassSetVolume
intents.HassMediaPrevious
now skips back to the previous item.HassSetVolume
now sets the volume withvolume_level
as a required slot.Improvements
Bug Fixes
text_chunks_matched
in the output.