Skip to content

Commit

Permalink
chore(pre-commit.ci): auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Aug 18, 2024
1 parent 0af1157 commit 2c90922
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/midea_ac_lan/water_heater.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
from midealocal.devices.c3 import MideaC3Device
from midealocal.devices.cd import DeviceAttributes as CDAttributes
from midealocal.devices.cd import MideaCDDevice
from midealocal.devices.e2 import MideaE2Device
from midealocal.devices.e2 import DeviceAttributes as E2Attributes
from midealocal.devices.e2 import MideaE2Device
from midealocal.devices.e3 import MideaE3Device
from midealocal.devices.e6 import DeviceAttributes as E6Attributes
from midealocal.devices.e6 import MideaE6Device
Expand Down Expand Up @@ -219,9 +219,7 @@ def __init__(self, device: MideaE2Device, entity_key: str) -> None:
def current_operation(self) -> str:
"""Midea E2 Water Heater current operation."""
return str(
STATE_ON
if self._device.get_attribute(E2Attributes.power)
else STATE_OFF,
STATE_ON if self._device.get_attribute(E2Attributes.power) else STATE_OFF,
)

@property
Expand Down

0 comments on commit 2c90922

Please sign in to comment.