Add select for dehumidifier's mode control (#140572)

* Add select for dehumidifier

* Add device_class POWER

* Delete not related to select

* Update homeassistant/components/lg_thinq/strings.json

---------

Co-authored-by: yunseon.park <yunseon.park@lge.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
LG-ThinQ-Integration 2025-04-02 00:14:39 +09:00 committed by GitHub
parent da9b3dc68b
commit e0b030c892
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 21 additions and 1 deletions

View File

@ -169,6 +169,9 @@
"current_job_mode": {
"default": "mdi:format-list-bulleted"
},
"current_job_mode_dehumidifier": {
"default": "mdi:format-list-bulleted"
},
"operation_mode": {
"default": "mdi:gesture-tap-button"
},

View File

@ -98,7 +98,13 @@ DEVICE_TYPE_SELECT_MAP: dict[DeviceType, tuple[SelectEntityDescription, ...]] =
AIR_FLOW_SELECT_DESC[ThinQProperty.WIND_STRENGTH],
SELECT_DESC[ThinQProperty.CURRENT_JOB_MODE],
),
DeviceType.DEHUMIDIFIER: (AIR_FLOW_SELECT_DESC[ThinQProperty.WIND_STRENGTH],),
DeviceType.DEHUMIDIFIER: (
AIR_FLOW_SELECT_DESC[ThinQProperty.WIND_STRENGTH],
SelectEntityDescription(
key=ThinQProperty.CURRENT_JOB_MODE,
translation_key="current_job_mode_dehumidifier",
),
),
DeviceType.DISH_WASHER: (
OPERATION_SELECT_DESC[ThinQProperty.DISH_WASHER_OPERATION_MODE],
),

View File

@ -928,6 +928,17 @@
"vacation": "Vacation"
}
},
"current_job_mode_dehumidifier": {
"name": "[%key:component::lg_thinq::entity::sensor::current_job_mode::name%]",
"state": {
"air_clean": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::air_clean%]",
"clothes_dry": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::clothes_dry%]",
"intensive_dry": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::intensive_dry%]",
"quiet_humidity": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::quiet_humidity%]",
"rapid_humidity": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::rapid_humidity%]",
"smart_humidity": "[%key:component::lg_thinq::entity::sensor::current_job_mode::state::smart_humidity%]"
}
},
"operation_mode": {
"name": "Operation",
"state": {