mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-18 23:06:31 +00:00
Align documented humidifier attributes with implementation (#1921)
This commit is contained in:
parent
29acff9b82
commit
41846a472f
@ -11,18 +11,25 @@ A humidifier entity is a device whose main purpose is to control humidity, i.e.
|
|||||||
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
|
Properties should always only return information from memory and not do I/O (like network requests). Implement `update()` or `async_update()` to fetch data.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
| ----------------------- | ------ | ------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
| ----------------------- | ---------------------------------------------- | ------------------------------------- | -------------------------------------------------- |
|
||||||
| target_humidity | int | `None` | The target humidity the device is trying to reach. |
|
| action | <code>HumidifierAction | None</code> | `None` | Returns the current status of the device. |
|
||||||
| current_humidity | int | `None` | The current humidity measured by the device. |
|
| available_modes | <code>list[str] | None</code> | **Required by MODES** | The available modes. Requires `SUPPORT_MODES`. |
|
||||||
| max_humidity | int | `DEFAULT_MAX_HUMIDITY` (value == 100) | Returns the maximum humidity. |
|
| current_humidity | <code>int | None</code> | `None` | The current humidity measured by the device. |
|
||||||
| min_humidity | int | `DEFAULT_MIN_HUMIDITY` (value == 0) | Returns the minimum humidity. |
|
| device_class | <code>HumidifierDeviceClass | None</code> | `None` | Type of hygrostat |
|
||||||
| mode | string | `NotImplementedError()` | The current active preset. Requires `SUPPORT_MODES`. |
|
| is_on | <code>bool | None</code> | `None` | Whether the device is on or off. |
|
||||||
| available_modes | list | `NotImplementedError()` | The available modes. Requires `SUPPORT_MODES`. |
|
| max_humidity | `int` | `DEFAULT_MAX_HUMIDITY` (value == 100) | The maximum humidity. |
|
||||||
| supported_features | int | (abstract method) | Bitmap of supported features. See below. |
|
| min_humidity | `int` | `DEFAULT_MIN_HUMIDITY` (value == 0) | The minimum humidity. |
|
||||||
| is_on | bool | `None` | Whether the device is on or off. |
|
| mode | <code>str | None</code> | **Required** | The current active mode. Requires `SUPPORT_MODES`. |
|
||||||
| device_class | string | `None` | Either `HumidifierDeviceClass.HUMIDIFIER` or `HumidiferDeviceClass.DEHUMIDIFIER` |
|
| target_humidity | <code>int | None</code> | `None` | The target humidity the device is trying to reach. |
|
||||||
| action | HumidifierAction | `None` | Returns the current status of the device. |
|
|
||||||
|
### Available device classes
|
||||||
|
|
||||||
|
| Constant | Description
|
||||||
|
| ----------------------------------- | ------------------------------------------
|
||||||
|
| `HumidiferDeviceClass.DEHUMIDIFIER` | A dehumidifier
|
||||||
|
| `HumidifierDeviceClass.HUMIDIFIER` | A humidifier
|
||||||
|
|
||||||
|
|
||||||
### Modes
|
### Modes
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user