Skip to content

Commit

Permalink
Fix pylint C0411
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenbe committed May 24, 2024
1 parent 7160208 commit 00d4ade
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion comfospot40/fanspeed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .value import Value
import json
import time
from .value import Value


class Fanspeed(Value):
Expand Down
7 changes: 3 additions & 4 deletions comfospot40/hal.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from comfospot40 import State, Parser
from comfospot40.create_packet import create_speed_packet
import serial_asyncio
import serial
import asyncio
import json
import time
import logging
from comfospot40 import State, Parser, create_packet


class Hal:
Expand Down Expand Up @@ -33,14 +32,14 @@ async def sendState(self, state: State, timer):
# print(zoneid, fan_speed)
if switch_dir:
zonestate.maybe_switch_direction()
packet = create_speed_packet(
packet = create_packet.create_speed_packet(
zoneid, zonestate.fan_speed.direction_forward(), fan_speed, 0, True
)
self._writer.write(bytes(packet)) if self._writer else None
await asyncio.sleep(0.1)
counter = zonestate.counter_fan.get_fan_data(zonestate.fan_speed)
# print(counter["direction"], counter["speed"])
packet = create_speed_packet(
packet = create_packet.create_speed_packet(
zoneid, counter["direction"], counter["speed"], 1, True
)
# print("Writing")
Expand Down
2 changes: 1 addition & 1 deletion comfospot40/mqtt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aiomqtt import Client
import asyncio
from aiomqtt import Client
import comfospot40


Expand Down
6 changes: 3 additions & 3 deletions comfospot40/parser.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import logging
import struct
from .packet import Packet
from .state import State
import copy
import asyncio
from datetime import datetime
from serial import SerialException
import asyncio
from .packet import Packet
from .state import State


class Parser:
Expand Down
2 changes: 1 addition & 1 deletion comfospot40/zone.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import json
from .temperature import Temperature
from .humidity import Humidity
from .fanspeed import Fanspeed
from .counterfan import Counterfan
import json


class Zone:
Expand Down

0 comments on commit 00d4ade

Please sign in to comment.