diff --git a/homeassistant/components/homekit/manifest.json b/homeassistant/components/homekit/manifest.json index e40d743068c..2589a1ac6ec 100644 --- a/homeassistant/components/homekit/manifest.json +++ b/homeassistant/components/homekit/manifest.json @@ -3,7 +3,7 @@ "name": "HomeKit", "documentation": "https://www.home-assistant.io/integrations/homekit", "requirements": [ - "HAP-python==4.1.0", + "HAP-python==4.2.1", "fnvhash==0.1.0", "PyQRCode==1.2.1", "base36==0.1.1" diff --git a/homeassistant/components/homekit/type_fans.py b/homeassistant/components/homekit/type_fans.py index 85157dd9367..d25f197e0ca 100644 --- a/homeassistant/components/homekit/type_fans.py +++ b/homeassistant/components/homekit/type_fans.py @@ -219,7 +219,7 @@ class Fan(HomeAccessory): # the rotation speed is mapped to 1 otherwise the update is ignored # in order to avoid this incorrect behavior. if percentage == 0 and state == STATE_ON: - percentage = 1 + percentage = max(1, self.char_speed.properties[PROP_MIN_STEP]) if percentage is not None: self.char_speed.set_value(percentage) diff --git a/requirements_all.txt b/requirements_all.txt index 2d43b04240f..e28de73c8c9 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -14,7 +14,7 @@ Adafruit-SHT31==1.0.2 # Adafruit_BBIO==1.1.1 # homeassistant.components.homekit -HAP-python==4.1.0 +HAP-python==4.2.1 # homeassistant.components.mastodon Mastodon.py==1.5.1 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index b6c37dac08a..54ea4ab4448 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -7,7 +7,7 @@ AEMET-OpenData==0.2.1 # homeassistant.components.homekit -HAP-python==4.1.0 +HAP-python==4.2.1 # homeassistant.components.flick_electric PyFlick==0.0.2