-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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 returning activity to Husqvarna lawn mower #124511
Add returning activity to Husqvarna lawn mower #124511
Conversation
Hey there @Thomas55555, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @mib1185, @edenhaus, @Augar, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There is a binary sensor for the same function. I think this should be deprecated in another PR. core/homeassistant/components/husqvarna_automower/binary_sensor.py Lines 42 to 45 in 7ae8f4c
Otherwise it looks good for me. |
Please split this into two PRs |
Wondered if I'd get asked that, will do, I'll keep this one for one half and open a new one for the other |
5af9276
to
b8e0ecb
Compare
Moved Ecovacs to here #124519 |
You or me doing that? |
I'm really busy right now. I can't do it within the next two weeks or something like that. So it would be nice, if you could do it. |
Sweet as, happy to |
Can you update the labels? Or should I just reopen a new PR? |
if your at least able to test this out? |
Unfortunately not. But with a test we can be pretty sure, that it works. |
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.
Please at a test here:
core/tests/components/husqvarna_automower/test_lawn_mower.py
Lines 43 to 47 in f4528b2
for activity, state, expected_state in ( | |
("UNKNOWN", "PAUSED", LawnMowerActivity.PAUSED), | |
("MOWING", "NOT_APPLICABLE", LawnMowerActivity.MOWING), | |
("NOT_APPLICABLE", "ERROR", LawnMowerActivity.ERROR), | |
): |
("GOING_HOME", "IN_OPERATION", LawnMowerActivity.RETURNING),
Test added and passing. |
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.
If the maintainers are okay with it, we can merge it.
Thanks @mikey0000 👍
Breaking change
Proposed change
Update the two mower integrations with returning activity
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: