Skip to content

Commit 7b962b1

Browse files
committed
Add NodeFeature.CIRCLE
1 parent 1f678d7 commit 7b962b1

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

plugwise_usb/api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class NodeFeature(str, Enum):
4141

4242
AVAILABLE = "available"
4343
BATTERY = "battery"
44+
CIRCLE = "circle"
4445
CIRCLEPLUS = "circleplus"
4546
ENERGY = "energy"
4647
HUMIDITY = "humidity"
@@ -78,13 +79,14 @@ class NodeType(Enum):
7879
PUSHING_FEATURES = (
7980
NodeFeature.AVAILABLE,
8081
NodeFeature.BATTERY,
82+
NodeFeature.CIRCLE,
83+
NodeFeature.CIRCLEPLUS,
8184
NodeFeature.HUMIDITY,
8285
NodeFeature.MOTION,
8386
NodeFeature.MOTION_CONFIG,
8487
NodeFeature.TEMPERATURE,
8588
NodeFeature.SENSE,
8689
NodeFeature.SWITCH,
87-
NodeFeature.CIRCLEPLUS,
8890
)
8991

9092

plugwise_usb/nodes/circle.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ async def load(self) -> bool:
805805
self._setup_protocol(
806806
CIRCLE_FIRMWARE_SUPPORT,
807807
(
808+
NodeFeature.CIRCLE,
808809
NodeFeature.RELAY,
809810
NodeFeature.RELAY_INIT,
810811
NodeFeature.RELAY_LOCK,
@@ -846,6 +847,7 @@ async def load(self) -> bool:
846847
self._setup_protocol(
847848
CIRCLE_FIRMWARE_SUPPORT,
848849
(
850+
NodeFeature.CIRCLE,
849851
NodeFeature.RELAY,
850852
NodeFeature.RELAY_INIT,
851853
NodeFeature.RELAY_LOCK,

plugwise_usb/nodes/helpers/firmware.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ class SupportedVersions(NamedTuple):
155155

156156
FEATURE_SUPPORTED_AT_FIRMWARE: Final = {
157157
NodeFeature.BATTERY: 2.0,
158+
NodeFeature.CIRCLE: 2.0,
159+
NodeFeature.CIRCLEPLUS: 2.0,
158160
NodeFeature.INFO: 2.0,
159161
NodeFeature.SENSE: 2.0,
160162
NodeFeature.TEMPERATURE: 2.0,
@@ -167,7 +169,6 @@ class SupportedVersions(NamedTuple):
167169
NodeFeature.MOTION: 2.0,
168170
NodeFeature.MOTION_CONFIG: 2.0,
169171
NodeFeature.SWITCH: 2.0,
170-
NodeFeature.CIRCLEPLUS: 2.0,
171172
}
172173

173174
# endregion

0 commit comments

Comments
 (0)