diff --git a/custom_components/midea_ac_lan/climate.py b/custom_components/midea_ac_lan/climate.py index db666723..c77cf55c 100644 --- a/custom_components/midea_ac_lan/climate.py +++ b/custom_components/midea_ac_lan/climate.py @@ -1,6 +1,6 @@ -from homeassistant.components.climate import ClimateEntity -from homeassistant.components.climate.const import ( +from homeassistant.components.climate import ( ATTR_HVAC_MODE, + ClimateEntity, ClimateEntityFeature, FAN_AUTO, FAN_HIGH, diff --git a/custom_components/midea_ac_lan/humidifier.py b/custom_components/midea_ac_lan/humidifier.py index 1b778ebd..ae506b91 100644 --- a/custom_components/midea_ac_lan/humidifier.py +++ b/custom_components/midea_ac_lan/humidifier.py @@ -1,5 +1,8 @@ -from homeassistant.components.humidifier import HumidifierDeviceClass, HumidifierEntity -from homeassistant.components.humidifier.const import HumidifierEntityFeature +from homeassistant.components.humidifier import ( + HumidifierDeviceClass, + HumidifierEntity, + HumidifierEntityFeature, +) from homeassistant.const import ( Platform, CONF_DEVICE_ID, diff --git a/custom_components/midea_ac_lan/sensor.py b/custom_components/midea_ac_lan/sensor.py index 40b230e6..77d524de 100644 --- a/custom_components/midea_ac_lan/sensor.py +++ b/custom_components/midea_ac_lan/sensor.py @@ -1,7 +1,7 @@ from .midea_entity import MideaEntity from .midea_devices import MIDEA_DEVICES from homeassistant.components.sensor import SensorEntity -from homeassistant.const import( +from homeassistant.const import ( Platform, CONF_DEVICE_ID, CONF_SENSORS