Permalink
Browse files

isort

  • Loading branch information...
Julius2342 committed Jan 10, 2018
1 parent 7034736 commit 47c941ba332c79cc0ed167ad2654d58fca7a04d0
@@ -3,7 +3,7 @@
from xknx import XKNX
from xknx.io import GatewayScanner, Tunnel
from xknx.knx import GroupAddress, PhysicalAddress, DPTBinary, Telegram
from xknx.knx import DPTBinary, GroupAddress, PhysicalAddress, Telegram
async def main():
View
@@ -6,9 +6,9 @@
from xknx import XKNX
from xknx.devices import Climate
from xknx.exceptions import DeviceIllegalValue
from xknx.knx import (GroupAddress, DPTArray, DPTBinary, DPTControllerStatus,
DPT2ByteFloat, DPTHVACMode, DPTTemperature, DPTValue1Count,
HVACOperationMode, Telegram, TelegramType)
from xknx.knx import (DPT2ByteFloat, DPTArray, DPTBinary, DPTControllerStatus,
DPTHVACMode, DPTTemperature, DPTValue1Count,
GroupAddress, HVACOperationMode, Telegram, TelegramType)
class TestClimate(unittest.TestCase):
View
@@ -3,8 +3,8 @@
import unittest
from xknx import XKNX
from xknx.devices import (Action, BinarySensor, Climate, Cover, Light,
Notification, Sensor, Switch, DateTime)
from xknx.devices import (Action, BinarySensor, Climate, Cover, DateTime,
Light, Notification, Sensor, Switch)
from xknx.devices.datetime import DateTimeBroadcastType
View
@@ -6,7 +6,7 @@
from xknx import XKNX
from xknx.devices import Cover
from xknx.knx import GroupAddress, DPTArray, DPTBinary, Telegram, TelegramType
from xknx.knx import DPTArray, DPTBinary, GroupAddress, Telegram, TelegramType
class TestCover(unittest.TestCase):
View
@@ -9,7 +9,6 @@
from xknx.devices.datetime import DateTimeBroadcastType
from xknx.knx import GroupAddress, TelegramType
MOCK_LOCALTIME = Mock()
# Mocked time: 2017-01-07 09:13:14 - a Saturday
MOCK_LOCALTIME.return_value = time.struct_time([2017, 1, 7, 9, 13, 14, 6, 0, 0])
View
@@ -2,8 +2,7 @@
import unittest
from xknx.exceptions import ConversionError
from xknx.knx import DPT4ByteUnsigned
from xknx.knx import DPT4ByteSigned
from xknx.knx import DPT4ByteSigned, DPT4ByteUnsigned
class TestDPT4Byte(unittest.TestCase):
View
@@ -2,8 +2,9 @@
import unittest
from xknx.exceptions import ConversionError
from xknx.knx import DPT2ByteFloat, DPT4ByteFloat, DPTHumidity, DPTLux, DPTTemperature, DPTElectricPotential, \
DPTElectricCurrent, DPTPower, DPTFrequency, DPTPhaseAngleDeg
from xknx.knx import (DPT2ByteFloat, DPT4ByteFloat, DPTElectricCurrent,
DPTElectricPotential, DPTFrequency, DPTHumidity, DPTLux,
DPTPhaseAngleDeg, DPTPower, DPTTemperature)
class TestDPTFloat(unittest.TestCase):
@@ -3,8 +3,8 @@
import unittest
from xknx import XKNX
from xknx.knx import (GroupAddress, PhysicalAddress, DPTArray, DPTBinary, DPTTemperature, DPTTime,
Telegram, TelegramType)
from xknx.knx import (DPTArray, DPTBinary, DPTTemperature, DPTTime,
GroupAddress, PhysicalAddress, Telegram, TelegramType)
from xknx.knxip import CEMIFrame, KNXIPFrame, KNXIPServiceType
@@ -3,7 +3,7 @@
import unittest
from xknx import XKNX
from xknx.knx import GroupAddress, DPTBinary, Telegram
from xknx.knx import DPTBinary, GroupAddress, Telegram
from xknx.knxip import (CEMIFrame, KNXIPFrame, KNXIPServiceType,
TunnellingRequest)
View
@@ -5,7 +5,7 @@
from xknx import XKNX
from xknx.devices import Light
from xknx.knx import GroupAddress, DPTArray, DPTBinary, Telegram, TelegramType
from xknx.knx import DPTArray, DPTBinary, GroupAddress, Telegram, TelegramType
class TestLight(unittest.TestCase):
View
@@ -5,7 +5,7 @@
from xknx import XKNX
from xknx.devices import Sensor
from xknx.knx import GroupAddress, DPTArray, DPTBinary, Telegram, TelegramType
from xknx.knx import DPTArray, DPTBinary, GroupAddress, Telegram, TelegramType
class TestSensor(unittest.TestCase):
View
@@ -4,12 +4,13 @@
from xknx import XKNX
from xknx.devices import (Action, ActionBase, ActionCallback, BinarySensor,
Climate, Cover, Light, Notification, RemoteValue,
Sensor, Switch, DateTime)
Climate, Cover, DateTime, Light, Notification,
RemoteValue, Sensor, Switch)
from xknx.exceptions import (ConversionError, CouldNotParseAddress,
CouldNotParseKNXIP, CouldNotParseTelegram,
DeviceIllegalValue)
from xknx.knx import GroupAddress, DPTArray, DPTBinary, Telegram, PhysicalAddress
from xknx.knx import (DPTArray, DPTBinary, GroupAddress, PhysicalAddress,
Telegram)
from xknx.knxip import (HPAI, CEMIFrame, ConnectionStateRequest,
ConnectionStateResponse, ConnectRequest,
ConnectRequestType, ConnectResponse,
View
@@ -5,7 +5,7 @@
from xknx import XKNX
from xknx.devices import Switch
from xknx.knx import GroupAddress, DPTBinary, Telegram, TelegramType
from xknx.knx import DPTBinary, GroupAddress, Telegram, TelegramType
class TestSwitch(unittest.TestCase):
@@ -4,7 +4,7 @@
from unittest.mock import Mock
from xknx import XKNX
from xknx.knx import (GroupAddress, AddressFilter, DPTBinary, Telegram,
from xknx.knx import (AddressFilter, DPTBinary, GroupAddress, Telegram,
TelegramDirection)
View
@@ -7,8 +7,8 @@
import yaml
from xknx.devices import (BinarySensor, Climate, Cover, Light, Notification,
Sensor, Switch, DateTime)
from xknx.devices import (BinarySensor, Climate, Cover, DateTime, Light,
Notification, Sensor, Switch)
from xknx.knx import PhysicalAddress
@@ -8,8 +8,8 @@
A BinarySensor may also have Actions attached which are executed after state was changed.
"""
import time
import asyncio
import time
from enum import Enum
from xknx.exceptions import CouldNotParseTelegram
View
@@ -5,8 +5,8 @@
* Manages and sends the desired setpoint to KNX bus.
"""
from xknx.exceptions import CouldNotParseTelegram, DeviceIllegalValue
from xknx.knx import (GroupAddress, DPTArray, DPTBinary, DPTControllerStatus,
DPTHVACMode, HVACOperationMode)
from xknx.knx import (DPTArray, DPTBinary, DPTControllerStatus, DPTHVACMode,
GroupAddress, HVACOperationMode)
from .device import Device
from .remote_value import RemoteValue1Count, RemoteValueTemp
View
@@ -7,7 +7,9 @@
"""
from enum import Enum
from xknx.knx import GroupAddress, DPTArray, DPTDateTime, DPTTime, DPTDate
from xknx.knx import DPTArray, DPTDate, DPTDateTime, DPTTime, GroupAddress
from .device import Device
View
@@ -8,7 +8,7 @@
* reading the current state from KNX bus.
"""
from xknx.exceptions import CouldNotParseTelegram
from xknx.knx import GroupAddress, DPTArray
from xknx.knx import DPTArray, GroupAddress
from .device import Device
from .remote_value import RemoteValueSwitch1001
@@ -1,6 +1,6 @@
"""Module for managing a notification via KNX."""
from xknx.exceptions import CouldNotParseTelegram
from xknx.knx import GroupAddress, DPTArray, DPTString
from xknx.knx import DPTArray, DPTString, GroupAddress
from .device import Device
@@ -8,8 +8,8 @@
from enum import Enum
from xknx.exceptions import ConversionError, CouldNotParseTelegram
from xknx.knx import (GroupAddress, DPTArray, DPTBinary, DPTScaling, DPTTemperature,
DPTValue1Count, Telegram)
from xknx.knx import (DPTArray, DPTBinary, DPTScaling, DPTTemperature,
DPTValue1Count, GroupAddress, Telegram)
class RemoteValue():
View
@@ -6,12 +6,13 @@
* reading the current state from KNX bus.
* watching for state updates from KNX bus.
"""
from xknx.knx import (GroupAddress, DPTArray, DPTBinary, DPTHumidity, DPTLux,
DPTScaling, DPTTemperature, DPTElectricPotential,
DPTElectricCurrent, DPTPower, DPTUElCurrentmA, DPTWsp,
DPTBrightness, DPTEnergy, DPTHeatFlowRate, DPTFrequency, DPTPhaseAngleRad, DPTPhaseAngleDeg,
DPTPowerFactor, DPTSpeed,
DPT2ByteUnsigned, DPT2ByteFloat, DPT4ByteUnsigned, DPT4ByteSigned, DPT4ByteFloat)
from xknx.knx import (DPT2ByteFloat, DPT2ByteUnsigned, DPT4ByteFloat,
DPT4ByteSigned, DPT4ByteUnsigned, DPTArray, DPTBinary,
DPTBrightness, DPTElectricCurrent, DPTElectricPotential,
DPTEnergy, DPTFrequency, DPTHeatFlowRate, DPTHumidity,
DPTLux, DPTPhaseAngleDeg, DPTPhaseAngleRad, DPTPower,
DPTPowerFactor, DPTScaling, DPTSpeed, DPTTemperature,
DPTUElCurrentmA, DPTWsp, GroupAddress)
from .device import Device
View
@@ -12,8 +12,8 @@
* 2nd level: "1/2"
* Free format: "123"
"""
from re import compile as re_compile
from enum import Enum
from re import compile as re_compile
from xknx.exceptions import CouldNotParseAddress
View
@@ -1,5 +1,6 @@
"""Implementation of Basic KNX datatypes."""
from enum import Enum
from xknx.exceptions import ConversionError
View
@@ -7,6 +7,7 @@
"""
import struct
from xknx.exceptions import ConversionError
from .dpt import DPTBase
View
@@ -3,8 +3,8 @@
import time
from xknx.exceptions import ConversionError
from .dpt import DPTBase
from .dpt import DPTWeekday
from .dpt import DPTBase, DPTWeekday
class DPTDateTime(DPTBase):
View
@@ -7,6 +7,7 @@
"""
import struct
from xknx.exceptions import ConversionError
from .dpt import DPTBase
@@ -1,7 +1,9 @@
"""Implementation of different KNX DPT HVAC Operation modes."""
from enum import Enum
from xknx.exceptions import CouldNotParseKNXIP
from .dpt import DPTBase
View
@@ -4,8 +4,7 @@
from xknx.exceptions import ConversionError
from .dpt import DPTBase
from .dpt import DPTWeekday
from .dpt import DPTBase, DPTWeekday
class DPTTime(DPTBase):
View
@@ -12,7 +12,7 @@
File: AN117 v02.01 KNX IP Communication Medium DV.pdf
"""
from xknx.exceptions import ConversionError, CouldNotParseKNXIP
from xknx.knx import (GroupAddress, PhysicalAddress, DPTArray, DPTBinary,
from xknx.knx import (DPTArray, DPTBinary, GroupAddress, PhysicalAddress,
Telegram, TelegramType)
from .body import KNXIPBody

0 comments on commit 47c941b

Please sign in to comment.