Skip to content
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

Move vacuums to self-contained integrations #1165

Merged
merged 6 commits into from Nov 1, 2021

Conversation

rytilahti
Copy link
Owner

@rytilahti rytilahti commented Oct 22, 2021

The integrations are to be stored under a category of devices it belongs to, the idea being that there will be category-specific common interfaces to simplify downstream implementations:

  • vacuum*.py => miio/integrations/vacuum/roborock/
  • dreamevacuum_miot.py => miio/integrations/vacuum/dreame/
  • roidmivacuum_miot.py => miio/integrations/vacuum/roidmi/
  • viomivacuum.py => miio/integrations/vacuum/viomi/

For the time being, the already exported implementations remain accessible via miio module, but this is expected to change in the future when common, category specific interfaces are introduced.

@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2021

Codecov Report

Merging #1165 (06c1312) into master (e1adea5) will increase coverage by 0.38%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1165      +/-   ##
==========================================
+ Coverage   77.91%   78.30%   +0.38%     
==========================================
  Files          79       84       +5     
  Lines        9220     9518     +298     
  Branches      761      775      +14     
==========================================
+ Hits         7184     7453     +269     
- Misses       1852     1879      +27     
- Partials      184      186       +2     
Impacted Files Coverage Δ
miio/integrations/vacuum/roborock/vacuum_tui.py 0.00% <ø> (ø)
miio/__init__.py 100.00% <100.00%> (ø)
...io/integrations/vacuum/dreame/dreamevacuum_miot.py 83.54% <100.00%> (ø)
...ions/vacuum/dreame/tests/test_dreamevacuum_miot.py 100.00% <100.00%> (ø)
miio/integrations/vacuum/mijia/__init__.py 100.00% <100.00%> (ø)
miio/integrations/vacuum/mijia/g1vacuum.py 74.14% <100.00%> (ø)
miio/integrations/vacuum/roborock/__init__.py 100.00% <100.00%> (ø)
.../integrations/vacuum/roborock/tests/test_vacuum.py 98.01% <100.00%> (ø)
miio/integrations/vacuum/roborock/vacuum.py 60.53% <100.00%> (ø)
...o/integrations/vacuum/roborock/vacuumcontainers.py 77.32% <100.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e1adea5...06c1312. Read the comment docs.

@rytilahti rytilahti changed the title Make Vacuum a self-contained integration Move vacuums to self-contained integrations Oct 23, 2021
@rytilahti rytilahti merged commit a19104b into master Nov 1, 2021
@rytilahti rytilahti deleted the vacuum/refactor/separate_integration branch November 1, 2021 16:53
@rytilahti rytilahti mentioned this pull request Nov 30, 2021
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.

None yet

2 participants