Apply suggestions from code review

Co-authored-by: Abílio Costa <abmantis@users.noreply.github.com>
This commit is contained in:
starkillerOG
2025-03-11 21:58:19 +01:00
committed by GitHub
parent 1a4577d1d1
commit 504d77eb35

View File

@@ -46,11 +46,11 @@ class ReolinkBinarySensorEntityDescription(
@dataclass(frozen=True, kw_only=True)
class ReolinkSmartBinarySensorEntityDescription(
class ReolinkSmartAIBinarySensorEntityDescription(
BinarySensorEntityDescription,
ReolinkEntityDescription,
):
"""A class that describes smart binary sensor entities."""
"""A class that describes Smart AI binary sensor entities."""
ai_type: str = ""
value: Callable[[Host, int, int], bool]
@@ -137,7 +137,7 @@ BINARY_SENSORS = (
),
)
BINARY_SMART_SENSORS = (
BINARY_SMART_AI_SENSORS = (
ReolinkSmartBinarySensorEntityDescription(
key="crossline",
ai_type="people",