-
-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add miio.vacuum to maintain backwards compat, add deprecation warning
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""This file is just for compat reasons and prints out a deprecated warning when | ||
executed.""" | ||
import warnings | ||
|
||
from .integrations.vacuum.roborock.vacuum import * # noqa: F403,F401 | ||
|
||
warnings.warn( | ||
"miio.vacuum module has been renamed to miio.integrations.vacuum.roborock.vacuum", | ||
DeprecationWarning, | ||
) |