Skip to content

Commit

Permalink
Fix linting issues with latest HA changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pp81381 committed Jan 12, 2024
1 parent 8b0c93e commit f9ef69e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/nice/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@
from .const import DOMAIN


@dataclass
@dataclass(frozen=True)
class NiceCIWSensorEntityDescriptionMixIn:
value_fn: Callable[[CIWHelper], float | None]


@dataclass
@dataclass(frozen=True)
class NiceCIWSensorEntityDescription(
SensorEntityDescription, NiceCIWSensorEntityDescriptionMixIn
):
"""Describes a Nice TT6 CIW Sensor"""


@dataclass
@dataclass(frozen=True)
class NiceCoverSensorEntityDescriptionMixIn:
value_fn: Callable[[Cover], float | None]


@dataclass
@dataclass(frozen=True)
class NiceCoverSensorEntityDescription(
SensorEntityDescription, NiceCoverSensorEntityDescriptionMixIn
):
Expand Down

0 comments on commit f9ef69e

Please sign in to comment.