Move more Oral-B entities to be diagnostic (#99297)

pull/99315/head
Paulus Schoutsen 2023-08-30 00:03:37 -04:00 committed by GitHub
parent d7d989b9fb
commit 9e4bcd298e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -38,12 +38,15 @@ SENSOR_DESCRIPTIONS: dict[str, SensorEntityDescription] = {
),
OralBSensor.SECTOR: SensorEntityDescription(
key=OralBSensor.SECTOR,
entity_category=EntityCategory.DIAGNOSTIC,
),
OralBSensor.NUMBER_OF_SECTORS: SensorEntityDescription(
key=OralBSensor.NUMBER_OF_SECTORS,
entity_category=EntityCategory.DIAGNOSTIC,
),
OralBSensor.SECTOR_TIMER: SensorEntityDescription(
key=OralBSensor.SECTOR_TIMER,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
),
OralBSensor.TOOTHBRUSH_STATE: SensorEntityDescription(
@ -52,6 +55,7 @@ SENSOR_DESCRIPTIONS: dict[str, SensorEntityDescription] = {
OralBSensor.PRESSURE: SensorEntityDescription(key=OralBSensor.PRESSURE),
OralBSensor.MODE: SensorEntityDescription(
key=OralBSensor.MODE,
entity_category=EntityCategory.DIAGNOSTIC,
),
OralBSensor.SIGNAL_STRENGTH: SensorEntityDescription(
key=OralBSensor.SIGNAL_STRENGTH,
@ -66,6 +70,7 @@ SENSOR_DESCRIPTIONS: dict[str, SensorEntityDescription] = {
device_class=SensorDeviceClass.BATTERY,
native_unit_of_measurement=PERCENTAGE,
state_class=SensorStateClass.MEASUREMENT,
entity_category=EntityCategory.DIAGNOSTIC,
),
}