mirror of
https://github.com/home-assistant/core.git
synced 2025-08-17 19:41:45 +02:00
Apply suggestions from code review
Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
@@ -46,11 +46,11 @@ class ReolinkBinarySensorEntityDescription(
|
|||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class ReolinkSmartBinarySensorEntityDescription(
|
class ReolinkSmartAIBinarySensorEntityDescription(
|
||||||
BinarySensorEntityDescription,
|
BinarySensorEntityDescription,
|
||||||
ReolinkEntityDescription,
|
ReolinkEntityDescription,
|
||||||
):
|
):
|
||||||
"""A class that describes smart binary sensor entities."""
|
"""A class that describes Smart AI binary sensor entities."""
|
||||||
|
|
||||||
ai_type: str = ""
|
ai_type: str = ""
|
||||||
value: Callable[[Host, int, int], bool]
|
value: Callable[[Host, int, int], bool]
|
||||||
@@ -137,7 +137,7 @@ BINARY_SENSORS = (
|
|||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
BINARY_SMART_SENSORS = (
|
BINARY_SMART_AI_SENSORS = (
|
||||||
ReolinkSmartBinarySensorEntityDescription(
|
ReolinkSmartBinarySensorEntityDescription(
|
||||||
key="crossline",
|
key="crossline",
|
||||||
ai_type="people",
|
ai_type="people",
|
||||||
|
Reference in New Issue
Block a user