From 7e6b4c45d9b1c5185ee7ca33688c099a53485c4d Mon Sep 17 00:00:00 2001
From: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Date: Wed, 27 Mar 2024 11:21:42 +0100
Subject: [PATCH] Update humidity property types to float (#2121)
---
docs/core/entity/climate.md | 8 ++++----
docs/core/entity/humidifier.md | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/docs/core/entity/climate.md b/docs/core/entity/climate.md
index f56845a2..98add093 100644
--- a/docs/core/entity/climate.md
+++ b/docs/core/entity/climate.md
@@ -13,23 +13,23 @@ Properties should always only return information from memory and not do I/O (lik
| Name | Type | Default | Description |
| ----------------------- | ----------------------------------- | ------------------------------------ | -------------------------------------------------------------------------- |
-| current_humidity | int | None
| `None` | The current humidity. |
+| current_humidity | float | None
| `None` | The current humidity. |
| current_temperature | float | None
| `None` | The current temperature. |
| fan_mode | str | None
| **Required by SUPPORT_FAN_MODE** | The current fan mode. |
| fan_modes | list[str] | None
| **Required by SUPPORT_FAN_MODE** | The list of available fan modes. |
| hvac_action | HVACAction | None
| `None` | The current HVAC action (heating, cooling) |
| hvac_mode | HVACMode | None
| **Required** | The current operation (e.g. heat, cool, idle). Used to determine `state`. |
| hvac_modes | list[HVACMode]
| **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 | str | None
| **Required by SUPPORT_PRESET_MODE** | The current active preset. |
| preset_modes | list[str] | None
| **Required by SUPPORT_PRESET_MODE** | The available presets. |
| swing_mode | str | None
| **Required by SUPPORT_SWING_MODE** | The swing setting. |
| swing_modes | list[str] | None
| **Required by SUPPORT_SWING_MODE** | Returns the list of available swing modes. |
-| target_humidity | int | None
| `None` | The target humidity the device is trying to reach. |
+| target_humidity | float | None
| `None` | The target humidity the device is trying to reach. |
| target_temperature | float | None
| `None` | The temperature currently set to be reached. |
| target_temperature_high | float | None
| **Required by TARGET_TEMPERATURE_RANGE** | The upper bound target temperature |
| target_temperature_low | float | None
| **Required by TARGET_TEMPERATURE_RANGE** | The lower bound target temperature |
diff --git a/docs/core/entity/humidifier.md b/docs/core/entity/humidifier.md
index a1de3a50..0f10f45f 100644
--- a/docs/core/entity/humidifier.md
+++ b/docs/core/entity/humidifier.md
@@ -15,13 +15,13 @@ Properties should always only return information from memory and not do I/O (lik
| ----------------------- | ---------------------------------------------- | ------------------------------------- | -------------------------------------------------- |
| action | HumidifierAction | None
| `None` | Returns the current status of the device. |
| available_modes | list[str] | None
| **Required by MODES** | The available modes. Requires `SUPPORT_MODES`. |
-| current_humidity | int | None
| `None` | The current humidity measured by the device. |
+| current_humidity | float | None
| `None` | The current humidity measured by the device. |
| device_class | HumidifierDeviceClass | None
| `None` | Type of hygrostat |
| is_on | bool | None
| `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 | str | None
| **Required** | The current active mode. Requires `SUPPORT_MODES`. |
-| target_humidity | int | None
| `None` | The target humidity the device is trying to reach. |
+| target_humidity | float | None
| `None` | The target humidity the device is trying to reach. |
### Available device classes