Skip to content

Commit

Permalink
Fix typing str
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Jun 10, 2024
1 parent 49aae8c commit c07d1a0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions custom_components/audiconnect/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,52 +26,52 @@ class AudiSensorDescription(SensorEntityDescription):
"""Describes a sensor."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiBinarySensorDescription(BinarySensorEntityDescription):
"""Describes a binary sensor."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiSelectDescription(SelectEntityDescription, AudiTurnMixin):
"""Describes a select input."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiNumberDescription(NumberEntityDescription, AudiTurnMixin):
"""Describes a number input."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiSwitchDescription(SwitchEntityDescription, AudiTurnMixin):
"""Describes a switch."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiLockDescription(LockEntityDescription, AudiTurnMixin):
"""Describes a lock."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None


@dataclass(frozen=True)
class AudiTrackerDescription(SensorEntityDescription):
"""Describes a tracker."""

value_fn: Callable[..., StateType] | None = None
value: tuple(str) | None = None
value: str | None = None

0 comments on commit c07d1a0

Please sign in to comment.