Skip to content

Commit 02dca5f

Browse files
authored
Fix type annotation for climate _attr_current_humidity (home-assistant#150615)
1 parent cc4b9e0 commit 02dca5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homeassistant/components/climate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
255255
)
256256

257257
entity_description: ClimateEntityDescription
258-
_attr_current_humidity: int | None = None
258+
_attr_current_humidity: float | None = None
259259
_attr_current_temperature: float | None = None
260260
_attr_fan_mode: str | None
261261
_attr_fan_modes: list[str] | None

homeassistant/components/lookin/climate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ async def async_setup_entry(
9191
class ConditionerEntity(LookinCoordinatorEntity, ClimateEntity):
9292
"""An aircon or heat pump."""
9393

94-
_attr_current_humidity: float | None = None # type: ignore[assignment]
94+
_attr_current_humidity: float | None = None
9595
_attr_temperature_unit = UnitOfTemperature.CELSIUS
9696
_attr_supported_features = (
9797
ClimateEntityFeature.TARGET_TEMPERATURE

0 commit comments

Comments
 (0)