File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
integrations/roborock/vacuum Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import click
14
14
import pytz
15
- from appdirs import user_cache_dir
15
+ from platformdirs import user_cache_dir
16
16
17
17
from miio .click_common import (
18
18
DeviceGroup ,
Original file line number Diff line number Diff line change 10
10
from typing import Any , List # noqa: F401
11
11
12
12
import click
13
- from appdirs import user_cache_dir
13
+ from platformdirs import user_cache_dir
14
14
from tqdm import tqdm
15
15
16
16
from miio .click_common import (
Original file line number Diff line number Diff line change 7
7
from pathlib import Path
8
8
from typing import Dict , List , Optional
9
9
10
- import appdirs
10
+ import platformdirs
11
11
from micloud .miotspec import MiotSpec
12
12
13
13
try :
@@ -66,7 +66,7 @@ class MiotCloud:
66
66
MODEL_MAPPING_FILE = "model-to-urn.json"
67
67
68
68
def __init__ (self ):
69
- self ._cache_dir = Path (appdirs .user_cache_dir ("python-miio" ))
69
+ self ._cache_dir = Path (platformdirs .user_cache_dir ("python-miio" ))
70
70
71
71
def get_release_list (self ) -> ReleaseList :
72
72
"""Fetch a list of available releases."""
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ construct = "^2.10.56"
34
34
zeroconf = " ^0"
35
35
attrs = " *"
36
36
pytz = " *"
37
- appdirs = " ^1 "
37
+ platformdirs = " * "
38
38
tqdm = " ^4"
39
39
micloud = { version = " >=0.6" }
40
40
croniter = " >=1"
@@ -84,13 +84,14 @@ use_parentheses = true
84
84
line_length = 88
85
85
forced_separate = " miio.discover"
86
86
known_first_party = " miio"
87
- known_third_party = [" appdirs " ,
87
+ known_third_party = [
88
88
" attr" ,
89
89
" click" ,
90
90
" construct" ,
91
91
" croniter" ,
92
92
" cryptography" ,
93
93
" netifaces" ,
94
+ " platformdirs" ,
94
95
" pytest" ,
95
96
" pytz" ,
96
97
" setuptools" ,
You can’t perform that action at this time.
0 commit comments