Skip to content

Commit

Permalink
chore(isort): reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
rokam authored and Attila Érsek committed May 23, 2024
1 parent e1e7ce3 commit b77c91a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion custom_components/midea_ac_lan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
CONF_TYPE,
)
from homeassistant.core import HomeAssistant
from midealocal.devices import device_selector

from .const import (
ALL_PLATFORM,
Expand All @@ -25,7 +26,6 @@
DOMAIN,
EXTRA_SWITCH,
)
from midealocal.devices import device_selector
from .midea_devices import MIDEA_DEVICES

_LOGGER = logging.getLogger(__name__)
Expand Down
6 changes: 2 additions & 4 deletions custom_components/midea_ac_lan/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
Platform,
UnitOfTemperature,
)
from .const import (
DOMAIN,
DEVICES,
)
from midealocal.devices.ac import DeviceAttributes as ACAttributes
from midealocal.devices.c3 import DeviceAttributes as C3Attributes
from midealocal.devices.cc import DeviceAttributes as CCAttributes
from midealocal.devices.cf import DeviceAttributes as CFAttributes
from midealocal.devices.fb import DeviceAttributes as FBAttributes

from .const import DEVICES, DOMAIN
from .midea_devices import MIDEA_DEVICES
from .midea_entity import MideaEntity

Expand Down
6 changes: 3 additions & 3 deletions custom_components/midea_ac_lan/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
from homeassistant.core import callback
from homeassistant.helpers.aiohttp_client import async_create_clientsession
from homeassistant.util.json import load_json
from midealocal.cloud import get_midea_cloud
from midealocal.device import MideaDevice
from midealocal.discover import discover

from .const import (
CONF_ACCOUNT,
Expand All @@ -40,9 +43,6 @@
EXTRA_CONTROL,
EXTRA_SENSOR,
)
from midealocal.discover import discover
from midealocal.cloud import get_midea_cloud
from midealocal.device import MideaDevice
from .midea_devices import MIDEA_DEVICES

_LOGGER = logging.getLogger(__name__)
Expand Down
7 changes: 2 additions & 5 deletions custom_components/midea_ac_lan/fan.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@
STATE_ON,
Platform,
)

from .const import (
DOMAIN,
DEVICES,
)
from midealocal.devices.ac import DeviceAttributes as ACAttributes
from midealocal.devices.ce import DeviceAttributes as CEAttributes
from midealocal.devices.x40 import DeviceAttributes as X40Attributes

from .const import DEVICES, DOMAIN
from .midea_devices import MIDEA_DEVICES
from .midea_entity import MideaEntity

Expand Down
9 changes: 3 additions & 6 deletions custom_components/midea_ac_lan/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
LightEntity,
LightEntityFeature,
)
from homeassistant.const import (
Platform,
CONF_DEVICE_ID,
CONF_SWITCHES,
)
from .const import DOMAIN, DEVICES
from homeassistant.const import CONF_DEVICE_ID, CONF_SWITCHES, Platform
from midealocal.devices.x13 import DeviceAttributes as X13Attributes

from .const import DEVICES, DOMAIN
from .midea_devices import MIDEA_DEVICES
from .midea_entity import MideaEntity

Expand Down
8 changes: 3 additions & 5 deletions custom_components/midea_ac_lan/midea_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
UnitOfTime,
UnitOfVolume,
)

from midealocal.devices.x26 import DeviceAttributes as X26Attributes
from midealocal.devices.x34 import DeviceAttributes as X34Attributes
from midealocal.devices.x40 import DeviceAttributes as X40Attributes
from midealocal.devices.a1 import DeviceAttributes as A1Attributes
from midealocal.devices.ac import DeviceAttributes as ACAttributes
from midealocal.devices.b0 import DeviceAttributes as B0Attributes
Expand Down Expand Up @@ -45,7 +41,9 @@
from midealocal.devices.fb import DeviceAttributes as FBAttributes
from midealocal.devices.fc import DeviceAttributes as FCAttributes
from midealocal.devices.fd import DeviceAttributes as FDAttributes

from midealocal.devices.x26 import DeviceAttributes as X26Attributes
from midealocal.devices.x34 import DeviceAttributes as X34Attributes
from midealocal.devices.x40 import DeviceAttributes as X40Attributes

MIDEA_DEVICES = {
0x13: {
Expand Down
6 changes: 3 additions & 3 deletions custom_components/midea_ac_lan/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
Platform,
UnitOfTemperature,
)

from .const import DOMAIN, DEVICES
from midealocal.devices.e6 import DeviceAttributes as E6Attributes
from midealocal.devices.c3 import DeviceAttributes as C3Attributes
from midealocal.devices.cd import DeviceAttributes as CDAttributes
from midealocal.devices.e6 import DeviceAttributes as E6Attributes

from .const import DEVICES, DOMAIN
from .midea_devices import MIDEA_DEVICES
from .midea_entity import MideaEntity

Expand Down

0 comments on commit b77c91a

Please sign in to comment.