Fix type annotation for climate _attr_current_humidity (#150615)

This commit is contained in:
Martin Dybal
2025-08-14 12:55:54 +02:00
committed by GitHub
parent cc4b9e0eca
commit 02dca5f0ad
2 changed files with 2 additions and 2 deletions

View File

@@ -255,7 +255,7 @@ class ClimateEntity(Entity, cached_properties=CACHED_PROPERTIES_WITH_ATTR_):
)
entity_description: ClimateEntityDescription
_attr_current_humidity: int | None = None
_attr_current_humidity: float | None = None
_attr_current_temperature: float | None = None
_attr_fan_mode: str | None
_attr_fan_modes: list[str] | None

View File

@@ -91,7 +91,7 @@ async def async_setup_entry(
class ConditionerEntity(LookinCoordinatorEntity, ClimateEntity):
"""An aircon or heat pump."""
_attr_current_humidity: float | None = None # type: ignore[assignment]
_attr_current_humidity: float | None = None
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE