Skip to content

Commit

Permalink
Isort
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Jun 27, 2022
1 parent a7d1419 commit 9dbaafd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions custom_components/matter_experimental/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Matter switches."""
from __future__ import annotations

from dataclasses import dataclass
from functools import partial

from typing import TYPE_CHECKING

from homeassistant.components.binary_sensor import (
Expand All @@ -19,8 +19,8 @@
from matter_server.vendor.chip.clusters import Objects as clusters

from .const import DOMAIN
from .entity_description import MatterEntityDescription
from .entity import MatterEntity
from .entity_description import MatterEntityDescription

if TYPE_CHECKING:
from matter_server.client.matter import Matter
Expand Down
6 changes: 3 additions & 3 deletions custom_components/matter_experimental/light.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
"""Matter light."""
from __future__ import annotations

from dataclasses import dataclass
from functools import partial

from typing import TYPE_CHECKING, Any

from homeassistant.helpers.entity import EntityDescription
from homeassistant.components.light import ATTR_BRIGHTNESS, ColorMode, LightEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import Platform
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.entity_platform import AddEntitiesCallback

from matter_server.client.model.device import MatterDevice
from matter_server.vendor import device_types
from matter_server.vendor.chip.clusters import Objects as clusters

from .const import DOMAIN
from .entity_description import MatterEntityDescription
from .entity import MatterEntity
from .entity_description import MatterEntityDescription
from .util import renormalize

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion custom_components/matter_experimental/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
from matter_server.vendor.chip.clusters.Types import Nullable, NullValue

from .const import DOMAIN
from .entity_description import MatterEntityDescription
from .entity import MatterEntity
from .entity_description import MatterEntityDescription

if TYPE_CHECKING:
from matter_server.client.matter import Matter
Expand Down
6 changes: 3 additions & 3 deletions custom_components/matter_experimental/switch.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Matter switches."""
from __future__ import annotations

from dataclasses import dataclass
from functools import partial

from typing import TYPE_CHECKING, Any

from homeassistant.components.switch import (
Expand All @@ -19,8 +19,8 @@
from matter_server.vendor.chip.clusters import Objects as clusters

from .const import DOMAIN
from .entity_description import MatterEntityDescription
from .entity import MatterEntity
from .entity_description import MatterEntityDescription

if TYPE_CHECKING:
from matter_server.client.matter import Matter
Expand Down Expand Up @@ -64,7 +64,7 @@ class MatterSwitchEntityDescription(
SwitchEntityDescription,
MatterEntityDescription,
):
"""Matter Sensor entity description."""
"""Matter Switch entity description."""


# You can't set default values on inherited data classes
Expand Down

0 comments on commit 9dbaafd

Please sign in to comment.