diff --git a/custom_components/sws12500/utils.py b/custom_components/sws12500/utils.py index 3322c19..6f8fc38 100644 --- a/custom_components/sws12500/utils.py +++ b/custom_components/sws12500/utils.py @@ -171,8 +171,8 @@ def wind_dir_to_text(deg: float) -> UnitOfDir | None: return None -def battery_level_to_text(battery: int) -> UnitOfBat: - """Return battery level in text representation. +def battery_level(battery: int) -> UnitOfBat: + """Return battery level. Returns UnitOfBat """