Add services to SmartTub for changing filtration settings#46980
Add services to SmartTub for changing filtration settings#46980bdraco merged 30 commits intohome-assistant:devfrom
Conversation
|
@mdz. Were you able to retest? |
|
@bdraco yes, the service calls work fine, but I haven't been able to get the services.yaml changes working properly. Even if I just put an empty |
|
Try rebasing to the latest dev, there is a new frontend package. |
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: J. Nick Koston <nick@koston.org>
|
I'm not sure what was wrong, but with 2021.3.0b3 + this branch as a custom integration it seems to be working now. I'm able to filter the target entities by platform and domain, which is better than nothing, but it would be best to have the service only target the relevant entity ( |
|
Looks like this has a conflict now. |
|
Resolved |
|
Only one is required. I didn't see a way to express that in the
services.yaml
…On Tue, Mar 16, 2021, 09:29 Franck Nijhof ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In homeassistant/components/smarttub/sensor.py
<#46980 (comment)>:
> + vol.Optional(ATTR_DURATION): vol.All(int, vol.Range(min=1, max=24)),
+ vol.Optional(ATTR_START_HOUR): vol.All(int, vol.Range(min=0, max=23)),
According to the service.yaml file, both are required? According to this,
at least one key?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#46980 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADKVL3VOXBWHQGH6NW6RFDTD6BPZANCNFSM4YDU6CCQ>
.
|
|
That is correct, but maybe its better to not have them both required in that case? (at least for the services.yaml file, as the service schema still protects it from bad input). |
|
OK, I'll make neither required then
…On Tue, Mar 16, 2021 at 1:03 PM Franck Nijhof ***@***.***> wrote:
That is correct, but maybe its better to not have them both required in
that case?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#46980 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADKVL6CCW3Q3TGR45EJTSDTD62PZANCNFSM4YDU6CCQ>
.
|
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
@frenck mind taking another look? |
|
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
|
Still relevant |

Proposed change
Adds
smarttub.set_primary_filtrationandsmarttub.set_secondary_filtrationservices.Type of change
Additional information
Checklist
black --fast 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..coveragerc.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: