Skip to content

Commit

Permalink
Update const.py
Browse files Browse the repository at this point in the history
- Use snake_case format for attribute names (thanks to Pavel Popov #13)
  • Loading branch information
dckiller51 committed Jun 6, 2021
1 parent ea511ee commit 1df89bd
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions custom_components/bodymiscale/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,28 @@
ATTR_BORN = "born"
ATTR_GENDER = "gender"
ATTR_AGE = "age"
ATTR_BMI = "BMI"
ATTR_BMR = "Basal metabolism"
ATTR_VISCERAL = "Visceral fat"
ATTR_IDEAL = "Ideal"
ATTR_BMILABEL = "BMI label"
ATTR_BMI = "bmi"
ATTR_BMR = "basal_metabolism"
ATTR_VISCERAL = "visceral_fat"
ATTR_IDEAL = "ideal"
ATTR_BMILABEL = "bmi_label"

# Constants for Miscale 2
READING_IMPEDANCE = "impedance"
CONF_SENSOR_IMPEDANCE = READING_IMPEDANCE
CONF_MIN_IMPEDANCE = f"min_{READING_IMPEDANCE}"
CONF_MAX_IMPEDANCE = f"max_{READING_IMPEDANCE}"
ATTR_IMPEDANCE = "impedance"
ATTR_LBM = "Lean body mass"
ATTR_FAT = "Body fat"
ATTR_WATER = "Water"
ATTR_BONES = "Bone mass"
ATTR_MUSCLE = "Muscle mass"
ATTR_FATMASSTOLOSE = "Fat mass to lose"
ATTR_FATMASSTOGAIN = "Fat mass to gain"
ATTR_PROTEIN = "Protein"
ATTR_BODY = "Body type"
ATTR_METABOLIC = "Metabolic age"
ATTR_LBM = "lean_body_mass"
ATTR_FAT = "body_fat"
ATTR_WATER = "water"
ATTR_BONES = "bone_mass"
ATTR_MUSCLE = "muscle_mass"
ATTR_FATMASSTOLOSE = "fat_mass_to_lose"
ATTR_FATMASSTOGAIN = "fat_mass_to_gain"
ATTR_PROTEIN = "protein"
ATTR_BODY = "body_type"
ATTR_METABOLIC = "metabolic_age"

# Defaults
DEFAULT_NAME = "bodymiscale"
Expand Down

0 comments on commit 1df89bd

Please sign in to comment.