Skip to content

Commit

Permalink
chore: fix pylint E1136
Browse files Browse the repository at this point in the history
  • Loading branch information
chemelli74 committed Jul 12, 2024
1 parent 86226c3 commit f097ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions midealocal/devices/ac/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,8 @@ def _body(self) -> bytearray:
)
if self.fresh_air_1 is not None and len(self.fresh_air_1) == FRESH_AIR_LENGTH:
pack_count += 1
fresh_air_power = 2 if self.fresh_air_1[0] > 0 else 1
fresh_air_fan_speed = self.fresh_air_1[1]
fresh_air_power = 2 if next(iter(self.fresh_air_1)) > 0 else 1
fresh_air_fan_speed = list(self.fresh_air_1)[1]
payload.extend(
NewProtocolMessageBody.pack(
param=NewProtocolTags.fresh_air_1,
Expand All @@ -597,8 +597,8 @@ def _body(self) -> bytearray:
)
if self.fresh_air_2 is not None and len(self.fresh_air_2) == FRESH_AIR_LENGTH:
pack_count += 1
fresh_air_power = 1 if self.fresh_air_2[0] > 0 else 0
fresh_air_fan_speed = self.fresh_air_2[1]
fresh_air_power = 1 if next(iter(self.fresh_air_2)) > 0 else 0
fresh_air_fan_speed = list(self.fresh_air_2)[1]
payload.extend(
NewProtocolMessageBody.pack(
param=NewProtocolTags.fresh_air_2,
Expand Down

0 comments on commit f097ff6

Please sign in to comment.