From a68a4c929ac4a77745278a96f8ad5303ca93cf5c Mon Sep 17 00:00:00 2001 From: schizza Date: Sat, 16 Aug 2025 17:29:22 +0200 Subject: [PATCH] Update const.py --- custom_components/sws12500/const.py | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/custom_components/sws12500/const.py b/custom_components/sws12500/const.py index 2ebc981..42a5af8 100644 --- a/custom_components/sws12500/const.py +++ b/custom_components/sws12500/const.py @@ -159,27 +159,6 @@ DISABLED_BY_DEFAULT: Final = [ ] -class UnitOfDir(StrEnum): - """Wind direrction azimut.""" - - NNE = "nne" - NE = "ne" - ENE = "ene" - E = "e" - ESE = "ese" - SE = "se" - SSE = "sse" - S = "s" - SSW = "ssw" - SW = "sw" - WSW = "wsw" - W = "w" - WNW = "wnw" - NW = "nw" - NNW = "nnw" - N = "n" - - class UnitOfDir(StrEnum): """Wind direrction azimut.""" @@ -224,8 +203,10 @@ class UnitOfBat(StrEnum): LOW = "low" NORMAL = "normal" + UNKNOWN = "unknown" -BATLEVEL: list[UnitOfBat] = [ +BATTERY_LEVEL: list[UnitOfBat] = [ UnitOfBat.LOW, UnitOfBat.NORMAL, + UnitOfBat.UNKNOWN, ]