Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 12, 2024
1 parent 10f76fa commit d13fa10
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 5 deletions.
1 change: 1 addition & 0 deletions custom_components/deebot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot Vacuums."""

import asyncio
import logging
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Generic
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary sensor module."""

from collections.abc import Sequence
from dataclasses import dataclass

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Deebot integration."""

import logging
import random
import string
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Const module."""

from collections.abc import Mapping

from deebot_client.events import (
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/controller.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Controller module."""

import logging
import random
import string
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Diagnostics support for deebot."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Deebot entity module."""

from collections.abc import Callable, Coroutine
from dataclasses import dataclass
from typing import Any, Generic, TypeVar
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/image.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot image entities."""

from collections.abc import MutableMapping, Sequence
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Number module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Generic
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Select module."""

from collections.abc import Callable
from dataclasses import dataclass
from typing import Any, Generic
Expand Down
7 changes: 4 additions & 3 deletions custom_components/deebot/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sensor module."""

from collections.abc import Callable, MutableMapping, Sequence
from dataclasses import dataclass
from math import floor
Expand Down Expand Up @@ -49,9 +50,9 @@ class DeebotSensorEntityDescription(
):
"""Deebot sensor entity description."""

extra_state_attributes_fn: Callable[
[EventT], MutableMapping[str, Any]
] | None = None
extra_state_attributes_fn: Callable[[EventT], MutableMapping[str, Any]] | None = (
None
)
value_fn: Callable[[EventT], StateType]


Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Switch module."""

from dataclasses import dataclass
from typing import Any

Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Util module."""

import dataclasses
from enum import Enum
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/deebot/vacuum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Deebot Vacuums."""

import logging
from collections.abc import Mapping, Sequence
from typing import Any
Expand Down
6 changes: 4 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Global fixtures for integration_blueprint integration."""

# Fixtures allow you to replace functions with a Mock object. You can perform
# many options via the Mock to reflect a particular behavior from the original
# function that you want to see without going through the function's actual logic.
Expand Down Expand Up @@ -34,8 +35,9 @@ def auto_enable_custom_integrations(enable_custom_integrations):
@pytest.fixture(name="skip_notifications", autouse=True)
def skip_notifications_fixture():
"""Skip notification calls."""
with patch("homeassistant.components.persistent_notification.async_create"), patch(
"homeassistant.components.persistent_notification.async_dismiss"
with (
patch("homeassistant.components.persistent_notification.async_create"),
patch("homeassistant.components.persistent_notification.async_dismiss"),
):
yield

Expand Down

0 comments on commit d13fa10

Please sign in to comment.