-
Notifications
You must be signed in to change notification settings - Fork 565
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
Added binary_sensor_HassGetState and needed values in _common.yaml. #2827
Conversation
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.
@larsdunemark please check commit message first. Maybe bit of a bit more than I could chew, but worth a shot.
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.
Great job! I think there is some parts that we need to revert and maybe rethink.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
device_class: battery | ||
|
||
- sentences: | ||
- "är alla batteri[er] {bs_battery_states:state} [<i_på> <area>q]" |
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.
"är alla batterierna normala i köket" <- Guess we could extract (batteri|enhet)[er]
to an expansion_rules and add all different versions.
@larsdunemark I'll check your latest comments. I have big trouble to get one specific test to pass: Code:
The test:
Output:
Can you see why this would fail? |
I don't think there is any sentences that would combind {entity}-batteriet. |
This is the sentence I'm testing with now, if that is what you are referring to:
I can't seem any logical reason for the test to fail here. I started a discussion on Discord if you would like to jump in: https://discord.com/channels/330944238910963714/1325154473219325972 |
@larsdunemark I'll close this PR and make smaller chunks instead. |
NB! Having trouble with some tests failing for area, but I'm not sure whats wrong. I figured I make a PR to get some guidance. Please check and request changes