Skip to content

Conversation

@danielholm
Copy link
Contributor

Excluded light domain from default and added separate response for light. I believe this could fix #2944

danielholm and others added 4 commits February 3, 2025 23:02
Copy link
Contributor

@larsdunemark larsdunemark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that you need to base your commits on the upstream main branch to avoid the problem where you get this merge problem with the README.md, in this PR it would remove the README.md from the main project if merged.

Please also try to make the changes smaller to avoid changing multiple domains as once if possible. This change both the way we handles lights and covers.

- sentences:
- (regla | <stäng_gardiner>) garagedörren
response: cover_device_class
response: cover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should still response Öppande garaget (depending on the state of translation it might give the device_class in that case we might need to handle the translation also.

cover: "Öppnade {{ slots.name }}"
cover: "Öppnade"
cover_area: "Öppnade i {{ slots.area }}"
cover_device_class: "Öppnade {{ slots.device_class }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the correct change, we don't want the response for a device_class to not include the class.
The intention it that this will say
Öppnande garaget if a command was issued for a device that will open that device_class.

- sentences:
- <öppna_gardiner> garagedörren
response: cover_device_class
response: cover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Comment on lines +11 to +15
- sentences:
- <stäng_gardiner> <name> #close curtains
requires_context:
domain:
- cover
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably be moved to the cover_HassTurnOff file

Comment on lines +17 to +22
- sentences:
- <slå_av> <name> # lights off
requires_context:
domain:
- light
response: light
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving to light_HassTurnOff file.

This will have the same sentence as the first but with a respond.

@home-assistant home-assistant bot marked this pull request as draft February 4, 2025 18:59
@home-assistant
Copy link

home-assistant bot commented Feb 4, 2025

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

- cover
response: cover
- sentences:
- <slå_av> <name> # lights off
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that one issue can be that the expansion rule for <slå_av> is a bit to wide, in contains both the work turn off, stopp, shutoff etc in swedish and for lights it might make more since to split it up in multiple sentences.
like:
"släck "
looking at the DA language.

@andreasbrett andreasbrett changed the title Fix #2944 - Response is None [SV] Fix #2944 - Response is None Feb 8, 2025
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.

Response entity is None

3 participants