From f88e137679043083dfbfa66c74ee5a83498f8279 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sun, 5 Nov 2023 22:49:08 +0100 Subject: [PATCH] Fix fritz entity category binary sensor is invalid (#103470) --- homeassistant/components/fritzbox/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/fritzbox/binary_sensor.py b/homeassistant/components/fritzbox/binary_sensor.py index dc56bc0473e..5d30362627e 100644 --- a/homeassistant/components/fritzbox/binary_sensor.py +++ b/homeassistant/components/fritzbox/binary_sensor.py @@ -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, ),