mirror of
https://github.com/home-assistant/core.git
synced 2025-08-31 02:11:32 +02:00
Fix type annotation for climate _attr_current_humidity
(#150615)
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user