Open HarvsG opened 3 months ago
FAILED tests/test_language_sentences.py::test_fan_HassTurnOff[en] - AssertionError: Recognition failed for 'Set the all the fans to off'
assert None is not None
FAILED tests/test_language_sentences.py::test_light_HassTurnOff[en] - AssertionError: Recognition failed for 'Set the all lights to off'
assert None is not None
FAILED tests/test_language_sentences.py::test_light_HassTurnOn[en] - AssertionError: Recognition failed for 'Set all the first floor lights to on'
assert None is not None
sentences/en/fan_HassTurnOn.yaml (2)
`8-8`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command. --- `18-19`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command.tests/en/fan_HassTurnOn.yaml (2)
`16-16`: **Approved: Added test case for expanded coverage.** The test case "set the kitchen fans to on" expands the coverage for the `HassTurnOn` intent and aligns with the new sentence structures. --- `31-31`: **Approved: Added test case for expanded coverage.** The test case "set the fans to on" expands the coverage for the `HassTurnOn` intent and aligns with the new sentence structures.sentences/en/fan_HassTurnOff.yaml (4)
`8-8`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command. --- `9-9`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command. --- `18-18`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command. --- `27-28`: **Approved: Improved sentence structure for clarity.** The addition of "to" enhances the naturalness and clarity of the command.tests/en/fan_HassTurnOff.yaml (3)
`15-15`: **LGTM!** The added phrase "set the living room fans to off" aligns with the intent and the new alias functionality. --- `29-29`: **LGTM!** The added phrase "Set all the fans to off" aligns with the intent and the new alias functionality. --- `42-42`: **LGTM!** The added phrase "set the fans to off" aligns with the intent and the new alias functionality.sentences/en/light_HassTurnOn.yaml (5)
`16-16`: **LGTM!** The added phrase "[] [all] [to] on" aligns with the intent and the new alias functionality. --- `17-17`: **LGTM!** The added phrase "[ ] [all] [in] [to] on" aligns with the intent and the new alias functionality. --- `32-32`: **LGTM!** The added phrase " [to] on" aligns with the intent and the new alias functionality. --- `43-43`: **LGTM!** The added phrase " [to] on" aligns with the intent and the new alias functionality. --- `44-44`: **LGTM!** The added phrase " [to] on" aligns with the intent and the new alias functionality. sentences/en/light_HassTurnOff.yaml (5)
`16-16`: **LGTM!** The added phrase "[] [all] [to] off" aligns with the intent and the new alias functionality. --- `17-17`: **LGTM!** The added phrase "[ ] [all] [in] [to] off" aligns with the intent and the new alias functionality. --- `26-26`: **LGTM!** The added phrase " [to] off " aligns with the intent and the new alias functionality. --- `32-32`: **LGTM!** The added phrase " [to] off" aligns with the intent and the new alias functionality. --- `43-43`: **LGTM!** The added phrase " [to] off" aligns with the intent and the new alias functionality. tests/en/light_HassTurnOff.yaml (4)
`26-26`: **LGTM!** The test phrase "Set the kitchen lights to off" is correctly added and consistent with the intent. --- `49-49`: **LGTM!** The test phrase "Set all the lights to off" is correctly added and consistent with the intent. --- `68-68`: **LGTM!** The test phrase "Set the lights to off" is correctly added and consistent with the intent. --- `87-87`: **LGTM!** The test phrase "Set all the first floor lights to off" is correctly added and consistent with the intent.tests/en/light_HassTurnOn.yaml (4)
`28-28`: **LGTM!** The test phrase "set the living room lights to on" is correctly added and consistent with the intent. --- `51-51`: **LGTM!** The test phrase "Set all lights to on" is correctly added and consistent with the intent. --- `70-70`: **LGTM!** The test phrase "Set the lights to on" is correctly added and consistent with the intent. --- `89-89`: **LGTM!** The test phrase "Set all the first floor lights to on" is correctly added and consistent with the intent.sentences/en/_common.yaml (1)
`372-372`: **LGTM!** The addition of "set" to the `turn` key in the expansion rules is consistent with the intent to recognize "set" as an alias for "turn".
I had some failures with sentences such as "set all the kitchen lights to off" I do think it's odd phrasing, but after using set for other commands it felt natural turn is an alias of 'set' after all
Summary by CodeRabbit
New Features
Tests
These updates aim to improve user experience by allowing more intuitive command phrasing and ensuring system accuracy in recognizing varied user inputs.