Skip to content

Commit 0a7d019

Browse files
committed
Flake8 fixes
1 parent 705a347 commit 0a7d019

File tree

4 files changed

+136
-55
lines changed

4 files changed

+136
-55
lines changed

plugwise/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
VOLUME_CUBIC_METERS: Final = "m³"
3131
VOLUME_CUBIC_METERS_PER_HOUR: Final = "m³/h"
3232

33-
### Stick constants ###
33+
# --- Stick constants ---
3434

3535
UTF8_DECODE: Final = "utf-8"
3636

@@ -363,7 +363,7 @@
363363
}
364364

365365

366-
### Smile constants ###
366+
# --- Smile constants ---
367367

368368
ACTUATOR_CLASSES: Final[tuple[str, ...]] = (
369369
"heater_central",

plugwise/exceptions.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,49 @@
22

33

44
class PlugwiseException(Exception):
5-
"""Base error class for this Plugwise library"""
5+
"""Base error class for this Plugwise library."""
66

77

8-
### Stick exceptions ###
8+
# --- Stick exceptions ---
99

1010

1111
class PortError(PlugwiseException):
12-
"""Connection to USBstick failed"""
12+
"""Connection to USBstick failed."""
1313

1414

1515
class StickInitError(PlugwiseException):
16-
"""Initialization of USBstick failed"""
16+
"""Initialization of USBstick failed."""
1717

1818

1919
class NetworkDown(PlugwiseException):
20-
"""Zigbee network not online"""
20+
"""Zigbee network not online."""
2121

2222

2323
class CirclePlusError(PlugwiseException):
24-
"""Connection to Circle+ node failed"""
24+
"""Connection to Circle+ node failed."""
2525

2626

2727
class InvalidMessageLength(PlugwiseException):
28-
"""Invalid message length"""
28+
"""Invalid message length."""
2929

3030

3131
class InvalidMessageHeader(PlugwiseException):
32-
"""Invalid message header"""
32+
"""Invalid message header."""
3333

3434

3535
class InvalidMessageFooter(PlugwiseException):
36-
"""Invalid message footer"""
36+
"""Invalid message footer."""
3737

3838

3939
class InvalidMessageChecksum(PlugwiseException):
40-
"""Invalid data checksum"""
40+
"""Invalid data checksum."""
4141

4242

4343
class TimeoutException(PlugwiseException):
44-
"""Timeout expired while waiting for response from node"""
44+
"""Timeout expired while waiting for response from node."""
4545

4646

47-
### Smile exceptions ###
47+
# --- Smile exceptions ---
4848

4949

5050
class ConnectionFailedError(PlugwiseException):

0 commit comments

Comments
 (0)