Adjust docstring for SensorDeviceClass.WEIGHT (#79201)

This commit is contained in:
epenet 2022-09-28 15:03:18 +02:00 committed by GitHub
parent 1ac5696e7f
commit f76eeaeea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,10 @@ class SensorDeviceClass(StrEnum):
# weight/mass (g, kg, mg, µg, oz, lb)
WEIGHT = "weight"
"""Using weight instead of mass because is fits better with every day language"""
"""Represent a measurement of an object's mass.
Weight is used instead of mass to fit with every day language.
"""
DEVICE_CLASSES_SCHEMA: Final = vol.All(vol.Lower, vol.Coerce(SensorDeviceClass))