Add missing min and max values for some numbers in Overkiz (#72229)

This commit is contained in:
Thibaut 2022-05-23 11:59:11 +02:00 committed by GitHub
parent ea05bd8c2e
commit 19781d285c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,8 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [
name="My Position",
icon="mdi:content-save-cog",
command=OverkizCommand.SET_MEMORIZED_1_POSITION,
min_value=0,
max_value=100,
entity_category=EntityCategory.CONFIG,
),
# WaterHeater: Expected Number Of Shower (2 - 4)
@ -84,6 +86,8 @@ NUMBER_DESCRIPTIONS: list[OverkizNumberDescription] = [
key=OverkizState.CORE_LEVEL,
icon="mdi:patio-heater",
command=OverkizCommand.SET_LEVEL,
min_value=0,
max_value=100,
inverted=True,
),
]