mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Fix fritz entity category binary sensor is invalid (#103470)
This commit is contained in:
parent
35791d7d6c
commit
f88e137679
@ -49,7 +49,7 @@ BINARY_SENSOR_TYPES: Final[tuple[FritzBinarySensorEntityDescription, ...]] = (
|
||||
key="lock",
|
||||
translation_key="lock",
|
||||
device_class=BinarySensorDeviceClass.LOCK,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
suitable=lambda device: device.lock is not None,
|
||||
is_on=lambda device: not device.lock,
|
||||
),
|
||||
@ -57,7 +57,7 @@ BINARY_SENSOR_TYPES: Final[tuple[FritzBinarySensorEntityDescription, ...]] = (
|
||||
key="device_lock",
|
||||
translation_key="device_lock",
|
||||
device_class=BinarySensorDeviceClass.LOCK,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
suitable=lambda device: device.device_lock is not None,
|
||||
is_on=lambda device: not device.device_lock,
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user