Skip to content

Commit 3e664d8

Browse files
authored
Add support for flash/jet cool (#347)
1 parent 34c3267 commit 3e664d8

5 files changed

Lines changed: 19 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ See [Getting Device Info](#getting-device-info) to determine if a device is supp
4242
* "Breeze" modes (e.g., breeze away, breeze mild, breezeless)
4343
* iECO
4444
* Auxiliary heating mode
45+
* Flash/jet cool
4546

4647
<small>
4748

custom_components/midea_ac/diagnostics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async def async_get_config_entry_diagnostics(
4646
"supports_ieco": device.supports_ieco,
4747
"supports_turbo": device.supports_turbo,
4848
"supports_freeze_protection": device.supports_freeze_protection,
49+
"supports_flash_cool": device.supports_flash_cool,
4950

5051
"supports_display_control": device.supports_display_control,
5152
"supports_filter_reminder": device.supports_filter_reminder,

custom_components/midea_ac/icons.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
"off": "mdi:led-off"
6060
}
6161
},
62+
"flash_cool": {
63+
"default": "mdi:sun-snowflake"
64+
},
6265
"purifier": {
6366
"default": "mdi:minus-circle",
6467
"state": {

custom_components/midea_ac/switch.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ async def async_setup_entry(
3434
MideaDisplaySwitch(coordinator)
3535
]
3636

37-
if coordinator.device.supports_purifier:
38-
entities.append(MideaSwitch(coordinator,
39-
"purifier",
40-
"purifier",
41-
entity_category=EntityCategory.CONFIG))
42-
4337
if coordinator.device.supports_breeze_away:
4438
entities.append(MideaSwitch(coordinator,
4539
"breeze_away",
@@ -55,6 +49,17 @@ async def async_setup_entry(
5549
"breezeless",
5650
"breezeless"))
5751

52+
if coordinator.device.supports_flash_cool:
53+
entities.append(MideaSwitch(coordinator,
54+
"flash_cool",
55+
"flash_cool"))
56+
57+
if coordinator.device.supports_purifier:
58+
entities.append(MideaSwitch(coordinator,
59+
"purifier",
60+
"purifier",
61+
entity_category=EntityCategory.CONFIG))
62+
5863
add_entities(entities)
5964

6065

custom_components/midea_ac/translations/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@
236236
"display": {
237237
"name": "Display"
238238
},
239+
"flash_cool": {
240+
"name": "Flash cool"
241+
},
239242
"purifier": {
240243
"name": "Purifier"
241244
}

0 commit comments

Comments
 (0)