Skip to content

Commit 125d63d

Browse files
committed
Fix UIClass and UIWidget enum UNKNOWN value capitalization
1 parent dc1c99c commit 125d63d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyoverkiz/enums/ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class UIClass(UnknownEnumMixin, StrEnum):
1717
"""Enumeration of UI classes used to describe device categories and behaviors."""
1818

19-
UNKNOWN = "unknown"
19+
UNKNOWN = "Unknown"
2020

2121
ADJUSTABLE_SLATS_ROLLER_SHUTTER = "AdjustableSlatsRollerShutter"
2222
AIR_SENSOR = "AirSensor"
@@ -94,7 +94,7 @@ class UIClass(UnknownEnumMixin, StrEnum):
9494
class UIWidget(UnknownEnumMixin, StrEnum):
9595
"""Enumeration of UI widgets used by Overkiz for device presentation."""
9696

97-
UNKNOWN = "unknown"
97+
UNKNOWN = "Unknown"
9898

9999
AIR_FLOW_SENSOR = "AirFlowSensor"
100100
AIR_QUALITY_SENSOR = "AirQualitySensor"

utils/generate_enums.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def to_enum_name(value: str) -> str:
164164
"class UIClass(UnknownEnumMixin, StrEnum):",
165165
' """Enumeration of UI classes used to describe device categories and behaviors."""',
166166
"",
167-
' UNKNOWN = "unknown"',
167+
' UNKNOWN = "Unknown"',
168168
"",
169169
]
170170

@@ -182,7 +182,7 @@ def to_enum_name(value: str) -> str:
182182
' """Enumeration of UI widgets used by Overkiz for device presentation."""'
183183
)
184184
lines.append("")
185-
lines.append(' UNKNOWN = "unknown"')
185+
lines.append(' UNKNOWN = "Unknown"')
186186
lines.append("")
187187

188188
# Add UI widgets

0 commit comments

Comments
 (0)