Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion homeassistant/components/vesync/humidifier.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Support for VeSync humidifiers."""

import logging
from typing import Any
from typing import TYPE_CHECKING, Any

from pyvesync.base_devices.vesyncbasedevice import VeSyncBaseDevice

Expand Down Expand Up @@ -130,11 +130,15 @@ def available_modes(self) -> list[str]:
@property
def current_humidity(self) -> int:
"""Return the current humidity."""
if TYPE_CHECKING:
assert self.device.state.humidity is not None
return self.device.state.humidity

@property
def target_humidity(self) -> int:
"""Return the humidity we try to reach."""
if TYPE_CHECKING:
assert self.device.state.auto_humidity is not None
return self.device.state.auto_humidity

@property
Expand Down