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

Deprecate roborock specific miio.Vacuum #1191

Merged
merged 3 commits into from
Nov 29, 2021

Conversation

rytilahti
Copy link
Owner

In order to make Vacuum as a usable base class for all vacuum implementations in the future, let's inform potential downstream users to convert their code to use the roborockvacuum class:

  • Initializing miio.Vacuum() instructs now to use the RoborockVacuum
  • miio.vacuum exposes the roborockvacuum internals while giving a deprecation warning

This should not break any existing code but marking it as such anyway to give it more visibility in the changelog.

@rytilahti rytilahti force-pushed the janitor/vacuum/deprecate_vacuum branch from c098a3a to b7c0f9d Compare November 29, 2021 00:43
@codecov-commenter
Copy link

codecov-commenter commented Nov 29, 2021

Codecov Report

Merging #1191 (b7c0f9d) into master (9ba55a9) will increase coverage by 0.07%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1191      +/-   ##
==========================================
+ Coverage   78.39%   78.46%   +0.07%     
==========================================
  Files          88       89       +1     
  Lines        9656     9669      +13     
  Branches     1129     1130       +1     
==========================================
+ Hits         7570     7587      +17     
+ Misses       1897     1893       -4     
  Partials      189      189              
Impacted Files Coverage Δ
miio/integrations/vacuum/roborock/vacuum_tui.py 0.00% <0.00%> (ø)
miio/__init__.py 100.00% <100.00%> (ø)
miio/integrations/vacuum/roborock/__init__.py 100.00% <100.00%> (ø)
.../integrations/vacuum/roborock/tests/test_vacuum.py 98.07% <100.00%> (+0.06%) ⬆️
miio/integrations/vacuum/roborock/vacuum.py 60.97% <100.00%> (+0.43%) ⬆️
miio/vacuum.py 100.00% <100.00%> (ø)
miio/utils.py 64.58% <0.00%> (+8.33%) ⬆️

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 9ba55a9...b7c0f9d. Read the comment docs.

@rytilahti rytilahti merged commit 9f51bc4 into master Nov 29, 2021
@rytilahti rytilahti deleted the janitor/vacuum/deprecate_vacuum branch November 29, 2021 00:52
@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants