mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Remove unnecessary min/max setting of WATER_HEATER (#138969)
Remove unnecessary min/max setting Co-authored-by: yunseon.park <yunseon.park@lge.com>
This commit is contained in:
parent
7f494c235c
commit
257242e6e3
@ -118,16 +118,7 @@ DEVICE_TYPE_NUMBER_MAP: dict[DeviceType, tuple[NumberEntityDescription, ...]] =
|
|||||||
DeviceType.WASHTOWER_DRYER: WASHER_NUMBERS,
|
DeviceType.WASHTOWER_DRYER: WASHER_NUMBERS,
|
||||||
DeviceType.WASHTOWER: WASHER_NUMBERS,
|
DeviceType.WASHTOWER: WASHER_NUMBERS,
|
||||||
DeviceType.WASHTOWER_WASHER: WASHER_NUMBERS,
|
DeviceType.WASHTOWER_WASHER: WASHER_NUMBERS,
|
||||||
DeviceType.WATER_HEATER: (
|
DeviceType.WATER_HEATER: (NUMBER_DESC[ThinQProperty.TARGET_TEMPERATURE],),
|
||||||
NumberEntityDescription(
|
|
||||||
key=ThinQProperty.TARGET_TEMPERATURE,
|
|
||||||
native_max_value=60,
|
|
||||||
native_min_value=35,
|
|
||||||
native_step=1,
|
|
||||||
native_unit_of_measurement=UnitOfTemperature.CELSIUS,
|
|
||||||
translation_key=ThinQProperty.TARGET_TEMPERATURE,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
DeviceType.WINE_CELLAR: (
|
DeviceType.WINE_CELLAR: (
|
||||||
NUMBER_DESC[ThinQProperty.LIGHT_STATUS],
|
NUMBER_DESC[ThinQProperty.LIGHT_STATUS],
|
||||||
NUMBER_DESC[ThinQProperty.TARGET_TEMPERATURE],
|
NUMBER_DESC[ThinQProperty.TARGET_TEMPERATURE],
|
||||||
@ -179,7 +170,7 @@ class ThinQNumberEntity(ThinQEntity, NumberEntity):
|
|||||||
) is not None:
|
) is not None:
|
||||||
self._attr_native_unit_of_measurement = unit_of_measurement
|
self._attr_native_unit_of_measurement = unit_of_measurement
|
||||||
|
|
||||||
# Undate range.
|
# Update range.
|
||||||
if (
|
if (
|
||||||
self.entity_description.native_min_value is None
|
self.entity_description.native_min_value is None
|
||||||
and (min_value := self.data.min) is not None
|
and (min_value := self.data.min) is not None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user