Update tuya vacuum supported features#95832
Conversation
|
Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
frenck
left a comment
There was a problem hiding this comment.
VacuumEntityFeature.STATE should be set for a vacuum platform derived from StateVaccuumEntity
This makes no sense to me. That state is optional from the platform upstream. And if I need to set it... why would it even be a flag to begin with?
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
I agree it does not make much sense. It's legacy from the PR introducing the I think the way forward is to:
|
Proposed change
Update
tuyavacuum supported featuresBackground:
VacuumEntityFeature.STATUSis meant only for the deprecated vacuum base classVacuumEntity, not for the base classStateVaccuumEntitywhich tuya's state vacuum platform is derived from.VacuumEntityFeature.STATEshould be set for a vacuum platform derived fromStateVaccuumEntityType 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.To help with the load of incoming pull requests: