Close #208. Fix mock devices.

(cherry picked from commit 28f93737ac)
This commit is contained in:
Xuwznln
2025-12-28 23:22:50 +08:00
parent 75bb5ec553
commit a1c34f138e
16 changed files with 25 additions and 25 deletions

View File

@@ -1240,7 +1240,7 @@ class WebSocketClient(BaseCommunicationClient):
}, },
} }
self.message_processor.send_message(message) self.message_processor.send_message(message)
logger.debug(f"[WebSocketClient] Device status published: {device_id}.{property_name}") logger.trace(f"[WebSocketClient] Device status published: {device_id}.{property_name}")
def publish_job_status( def publish_job_status(
self, feedback_data: dict, item: QueueItem, status: str, return_info: Optional[dict] = None self, feedback_data: dict, item: QueueItem, status: str, return_info: Optional[dict] = None

View File

@@ -8,7 +8,7 @@
], ],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_chiller", "class": "virtual_heatchill",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -49,7 +49,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_filter", "class": "virtual_filter",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -80,7 +80,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_heater", "class": "virtual_heatchill",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -108,7 +108,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -147,7 +147,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_rotavap", "class": "virtual_rotavap",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -175,7 +175,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_separator", "class": "virtual_separator",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -213,7 +213,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_solenoid_valve", "class": "virtual_solenoid_valve",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -233,7 +233,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_stirrer_new", "class": "virtual_stirrer",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -261,7 +261,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_stirrer", "class": "virtual_stirrer",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,
@@ -289,7 +289,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_vacuum", "class": "virtual_vacuum_pump",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_chiller", "class": "virtual_heatchill",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_filter", "class": "virtual_filter",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_heater", "class": "virtual_heatchill",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_rotavap", "class": "virtual_rotavap",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_separator", "class": "virtual_separator",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_solenoid_valve", "class": "virtual_solenoid_valve",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_stirrer", "class": "virtual_stirrer",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_stirrer_new", "class": "virtual_stirrer",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -6,7 +6,7 @@
"children": [], "children": [],
"parent": null, "parent": null,
"type": "device", "type": "device",
"class": "mock_vacuum", "class": "virtual_vacuum_pump",
"position": { "position": {
"x": 620.6111111111111, "x": 620.6111111111111,
"y": 171, "y": 171,

View File

@@ -32,7 +32,7 @@
"children": [], "children": [],
"parent": "CentrifugeTestStation", "parent": "CentrifugeTestStation",
"type": "device", "type": "device",
"class": "virtual_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 520.6111111111111, "x": 520.6111111111111,
"y": 300, "y": 300,

View File

@@ -32,7 +32,7 @@
"children": [], "children": [],
"parent": "FilterTestStation", "parent": "FilterTestStation",
"type": "device", "type": "device",
"class": "virtual_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 520.6111111111111, "x": 520.6111111111111,
"y": 300, "y": 300,

View File

@@ -32,7 +32,7 @@
"children": [], "children": [],
"parent": "HeatChillTestStation", "parent": "HeatChillTestStation",
"type": "device", "type": "device",
"class": "virtual_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 520.6111111111111, "x": 520.6111111111111,
"y": 300, "y": 300,

View File

@@ -32,7 +32,7 @@
"children": [], "children": [],
"parent": "StirTestStation", "parent": "StirTestStation",
"type": "device", "type": "device",
"class": "virtual_pump", "class": "virtual_transfer_pump",
"position": { "position": {
"x": 520.6111111111111, "x": 520.6111111111111,
"y": 300, "y": 300,