Fix fritz entity category binary sensor is invalid (#103470)

This commit is contained in:
Jan Bouwhuis 2023-11-05 22:49:08 +01:00 committed by GitHub
parent 35791d7d6c
commit f88e137679
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
),