Replace Climate CURRENT_HVAC_* constants with HVACAction enum (#1297)

This commit is contained in:
Franck Nijhof 2022-04-20 23:00:10 +02:00 committed by GitHub
parent 9bfb5df420
commit 35bd63bb0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,15 +56,15 @@ enum. If you want another mode, add a preset instead.
### HVAC Action ### HVAC Action
The HVAC action describes the _current_ action. This is different from the mode, because if a device is set to heat, and the target temperature is already achieved, the device will not be actively heating anymore. The HVAC action describes the _current_ action. This is different from the mode, because if a device is set to heat, and the target temperature is already achieved, the device will not be actively heating anymore. It is only allowed to use the built-in HVAC actions, provided by the `HVACAction` enum.
| Name | Description | | Name | Description |
| ------------------- | --------------------- | | -------------------- | --------------------- |
| `CURRENT_HVAC_OFF` | Device is turned off. | | `HVACAction.OFF` | Device is turned off. |
| `CURRENT_HVAC_HEAT` | Device is heating. | | `HVACAction.HEATING` | Device is heating. |
| `CURRENT_HVAC_COOL` | Device is cooling. | | `HVACAction.COOLING` | Device is cooling. |
| `CURRENT_HVAC_DRY` | Device is drying. | | `HVACAction.DRYING` | Device is drying. |
| `CURRENT_HVAC_IDLE` | Device is idle. | | `HVACAction.IDLE` | Device is idle. |
### Presets ### Presets