Update humidity property types to float (#2121)

This commit is contained in:
Marc Mueller 2024-03-27 11:21:42 +01:00 committed by GitHub
parent 83d10c5a4a
commit 7e6b4c45d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -13,23 +13,23 @@ Properties should always only return information from memory and not do I/O (lik
| Name | Type | Default | Description |
| ----------------------- | ----------------------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
| current_humidity | <code>int &#124; None</code> | `None` | The current humidity. |
| current_humidity | <code>float &#124; None</code> | `None` | The current humidity. |
| current_temperature | <code>float &#124; None</code> | `None` | The current temperature. |
| fan_mode | <code>str &#124; None</code> | **Required by SUPPORT_FAN_MODE** | The current fan mode. |
| fan_modes | <code>list[str] &#124; None</code> | **Required by SUPPORT_FAN_MODE** | The list of available fan modes. |
| hvac_action | <code>HVACAction &#124; None</code> | `None` | The current HVAC action (heating, cooling) |
| hvac_mode | <code>HVACMode &#124; None</code> | **Required** | The current operation (e.g. heat, cool, idle). Used to determine `state`. |
| hvac_modes | <code>list[HVACMode]</code> | **Required** | List of available operation modes. See below. |
| max_humidity | `int` | `DEFAULT_MAX_HUMIDITY` (value == 99) | The maximum humidity. |
| max_humidity | `float` | `DEFAULT_MAX_HUMIDITY` (value == 99) | The maximum humidity. |
| max_temp | `float` | `DEFAULT_MAX_TEMP` (value == 35 °C) | The maximum temperature in `temperature_unit`. |
| min_humidity | `int` | `DEFAULT_MIN_HUMIDITY` (value == 30) | The minimum humidity. |
| min_humidity | `float` | `DEFAULT_MIN_HUMIDITY` (value == 30) | The minimum humidity. |
| min_temp | `float` | `DEFAULT_MIN_TEMP` (value == 7 °C) | The minimum temperature in `temperature_unit`. |
| precision | `float` | According to `temperature_unit` | The precision of the temperature in the system. Defaults to tenths for TEMP_CELSIUS, whole number otherwise. |
| preset_mode | <code>str &#124; None</code> | **Required by SUPPORT_PRESET_MODE** | The current active preset. |
| preset_modes | <code>list[str] &#124; None</code> | **Required by SUPPORT_PRESET_MODE** | The available presets. |
| swing_mode | <code>str &#124; None</code> | **Required by SUPPORT_SWING_MODE** | The swing setting. |
| swing_modes | <code>list[str] &#124; None</code> | **Required by SUPPORT_SWING_MODE** | Returns the list of available swing modes. |
| target_humidity | <code>int &#124; None</code> | `None` | The target humidity the device is trying to reach. |
| target_humidity | <code>float &#124; None</code> | `None` | The target humidity the device is trying to reach. |
| target_temperature | <code>float &#124; None</code> | `None` | The temperature currently set to be reached. |
| target_temperature_high | <code>float &#124; None</code> | **Required by TARGET_TEMPERATURE_RANGE** | The upper bound target temperature |
| target_temperature_low | <code>float &#124; None</code> | **Required by TARGET_TEMPERATURE_RANGE** | The lower bound target temperature |

View File

@ -15,13 +15,13 @@ Properties should always only return information from memory and not do I/O (lik
| ----------------------- | ---------------------------------------------- | ------------------------------------- | -------------------------------------------------- |
| action | <code>HumidifierAction &#124; None</code> | `None` | Returns the current status of the device. |
| available_modes | <code>list[str] &#124; None</code> | **Required by MODES** | The available modes. Requires `SUPPORT_MODES`. |
| current_humidity | <code>int &#124; None</code> | `None` | The current humidity measured by the device. |
| current_humidity | <code>float &#124; None</code> | `None` | The current humidity measured by the device. |
| device_class | <code>HumidifierDeviceClass &#124; None</code> | `None` | Type of hygrostat |
| is_on | <code>bool &#124; None</code> | `None` | Whether the device is on or off. |
| max_humidity | `int` | `DEFAULT_MAX_HUMIDITY` (value == 100) | The maximum humidity. |
| min_humidity | `int` | `DEFAULT_MIN_HUMIDITY` (value == 0) | The minimum humidity. |
| max_humidity | `float` | `DEFAULT_MAX_HUMIDITY` (value == 100) | The maximum humidity. |
| min_humidity | `float` | `DEFAULT_MIN_HUMIDITY` (value == 0) | The minimum humidity. |
| mode | <code>str &#124; None</code> | **Required** | The current active mode. Requires `SUPPORT_MODES`. |
| target_humidity | <code>int &#124; None</code> | `None` | The target humidity the device is trying to reach. |
| target_humidity | <code>float &#124; None</code> | `None` | The target humidity the device is trying to reach. |
### Available device classes