Skip to content

Commit

Permalink
Merge branch 'master' into fix/null_action_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti authored Oct 21, 2024
2 parents 12acfdc + 4d7a7ea commit 635fbce
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion miio/integrations/roborock/vacuum/vacuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import click
import pytz
from appdirs import user_cache_dir
from platformdirs import user_cache_dir

from miio.click_common import (
DeviceGroup,
Expand Down
2 changes: 1 addition & 1 deletion miio/integrations/roborock/vacuum/vacuum_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, List # noqa: F401

import click
from appdirs import user_cache_dir
from platformdirs import user_cache_dir
from tqdm import tqdm

from miio.click_common import (
Expand Down
4 changes: 2 additions & 2 deletions miio/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from pathlib import Path
from typing import Dict, List, Optional

import appdirs
import platformdirs
from micloud.miotspec import MiotSpec

try:
Expand Down Expand Up @@ -66,7 +66,7 @@ class MiotCloud:
MODEL_MAPPING_FILE = "model-to-urn.json"

def __init__(self):
self._cache_dir = Path(appdirs.user_cache_dir("python-miio"))
self._cache_dir = Path(platformdirs.user_cache_dir("python-miio"))

def get_release_list(self) -> ReleaseList:
"""Fetch a list of available releases."""
Expand Down
26 changes: 13 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ construct = "^2.10.56"
zeroconf = "^0"
attrs = "*"
pytz = "*"
appdirs = "^1"
platformdirs = "*"
tqdm = "^4"
micloud = { version = ">=0.6" }
croniter = ">=1"
Expand Down Expand Up @@ -84,13 +84,14 @@ use_parentheses = true
line_length = 88
forced_separate = "miio.discover"
known_first_party = "miio"
known_third_party = ["appdirs",
known_third_party = [
"attr",
"click",
"construct",
"croniter",
"cryptography",
"netifaces",
"platformdirs",
"pytest",
"pytz",
"setuptools",
Expand Down

0 comments on commit 635fbce

Please sign in to comment.