Add more Withings measurement sensors (#105561)

pull/106486/head
Joost Lekkerkerker 2023-12-27 16:55:42 +01:00 committed by GitHub
parent 13702d51b1
commit e507d1c5a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 0 deletions

View File

@ -233,6 +233,33 @@ MEASUREMENT_SENSORS: dict[
translation_key="vascular_age",
entity_registry_enabled_default=False,
),
MeasurementType.VISCERAL_FAT: WithingsMeasurementSensorEntityDescription(
key="visceral_fat",
measurement_type=MeasurementType.VISCERAL_FAT,
translation_key="visceral_fat_index",
entity_registry_enabled_default=False,
),
MeasurementType.ELECTRODERMAL_ACTIVITY_FEET: WithingsMeasurementSensorEntityDescription(
key="electrodermal_activity_feet",
measurement_type=MeasurementType.ELECTRODERMAL_ACTIVITY_FEET,
translation_key="electrodermal_activity_feet",
native_unit_of_measurement=PERCENTAGE,
entity_registry_enabled_default=False,
),
MeasurementType.ELECTRODERMAL_ACTIVITY_LEFT_FOOT: WithingsMeasurementSensorEntityDescription(
key="electrodermal_activity_left_foot",
measurement_type=MeasurementType.ELECTRODERMAL_ACTIVITY_LEFT_FOOT,
translation_key="electrodermal_activity_left_foot",
native_unit_of_measurement=PERCENTAGE,
entity_registry_enabled_default=False,
),
MeasurementType.ELECTRODERMAL_ACTIVITY_RIGHT_FOOT: WithingsMeasurementSensorEntityDescription(
key="electrodermal_activity_right_foot",
measurement_type=MeasurementType.ELECTRODERMAL_ACTIVITY_RIGHT_FOOT,
translation_key="electrodermal_activity_right_foot",
native_unit_of_measurement=PERCENTAGE,
entity_registry_enabled_default=False,
),
}

View File

@ -92,6 +92,18 @@
"vascular_age": {
"name": "Vascular age"
},
"visceral_fat_index": {
"name": "Visceral fat index"
},
"electrodermal_activity_feet": {
"name": "Electrodermal activity feet"
},
"electrodermal_activity_left_foot": {
"name": "Electrodermal activity left foot"
},
"electrodermal_activity_right_foot": {
"name": "Electrodermal activity right foot"
},
"breathing_disturbances_intensity": {
"name": "Breathing disturbances intensity"
},