Skip to content

Commit

Permalink
chore: ruff format .
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanSchalton committed Mar 16, 2024
1 parent 5490807 commit 8885561
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 6 deletions.
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Smart devices."""

from __future__ import annotations

from typing import NamedTuple
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Alarm."""

from __future__ import annotations

from enum import StrEnum
Expand Down
10 changes: 4 additions & 6 deletions custom_components/tuya_openapi/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tuya Home Assistant Base Device Model."""

from __future__ import annotations

import base64
Expand Down Expand Up @@ -219,8 +220,7 @@ def find_dpcode(
*,
prefer_function: bool = False,
dptype: Literal[DPType.ENUM],
) -> EnumTypeData | None:
...
) -> EnumTypeData | None: ...

@overload
def find_dpcode(
Expand All @@ -229,17 +229,15 @@ def find_dpcode(
*,
prefer_function: bool = False,
dptype: Literal[DPType.INTEGER],
) -> IntegerTypeData | None:
...
) -> IntegerTypeData | None: ...

@overload
def find_dpcode(
self,
dpcodes: str | DPCode | tuple[DPCode, ...] | None,
*,
prefer_function: bool = False,
) -> DPCode | None:
...
) -> DPCode | None: ...

def find_dpcode(
self,
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya binary sensors."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya buttons."""

from __future__ import annotations

from homeassistant.components.button import ButtonEntity, ButtonEntityDescription
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/camera.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya cameras."""

from __future__ import annotations

from homeassistant.components import ffmpeg
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/climate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Climate."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Tuya."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the Tuya integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Cover."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Diagnostics support for Tuya."""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/fan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Fan."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/humidifier.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya (de)humidifiers."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/light.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for the Tuya lights."""

from __future__ import annotations

import json
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/number.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya number."""

from __future__ import annotations

from homeassistant.components.number import (
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/scene.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya scenes."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya select."""

from __future__ import annotations

from homeassistant.components.select import SelectEntity, SelectEntityDescription
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya sensors."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/siren.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya siren."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/switch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya switches."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility methods for the Tuya integration."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions custom_components/tuya_openapi/vacuum.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Tuya Vacuums."""

from __future__ import annotations

from typing import Any
Expand Down

0 comments on commit 8885561

Please sign in to comment.