From b366354d55414a94cf1100fbab49fbb5dc5a1f02 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 30 Aug 2022 20:56:10 +0200 Subject: [PATCH] Improve type hints in insteon (#77532) --- homeassistant/components/insteon/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/insteon/climate.py b/homeassistant/components/insteon/climate.py index 8806caf3999..922ef141350 100644 --- a/homeassistant/components/insteon/climate.py +++ b/homeassistant/components/insteon/climate.py @@ -208,9 +208,9 @@ class InsteonClimateEntity(InsteonEntity, ClimateEntity): mode = list(HVAC_MODES)[list(HVAC_MODES.values()).index(hvac_mode)] await self._insteon_device.async_set_mode(mode) - async def async_set_humidity(self, humidity): + async def async_set_humidity(self, humidity: int) -> None: """Set new humidity level.""" - change = humidity - self.target_humidity + change = humidity - (self.target_humidity or 0) high = self._insteon_device.groups[HUMIDITY_HIGH].value + change low = self._insteon_device.groups[HUMIDITY_LOW].value + change await self._insteon_device.async_set_humidity_low_set_point(low)