From 925442791583faf0ee2401ac2b05fc7b427f7afb Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 21 Oct 2022 22:11:48 +0800 Subject: [PATCH] Format pump schema --- api/s6_pumps.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/s6_pumps.py b/api/s6_pumps.py index 2d6e746..87f71e3 100644 --- a/api/s6_pumps.py +++ b/api/s6_pumps.py @@ -3,13 +3,13 @@ from .s0_base import * def get_pump_schema(name: str) -> dict[str, dict[str, Any]]: - return { 'id' : {'type': 'str' , 'optional': False , 'readonly': True }, - 'node1' : {'type': 'str' , 'optional': False , 'readonly': False}, - 'node2' : {'type': 'str' , 'optional': False , 'readonly': False}, - 'power' : {'type': 'float' , 'optional': True , 'readonly': False}, - 'head' : {'type': 'str' , 'optional': True , 'readonly': False}, - 'speed' : {'type': 'float' , 'optional': True , 'readonly': False}, - 'pattern' : {'type': 'str' , 'optional': True , 'readonly': False} } + return { 'id' : {'type': 'str' , 'optional': False , 'readonly': True }, + 'node1' : {'type': 'str' , 'optional': False , 'readonly': False}, + 'node2' : {'type': 'str' , 'optional': False , 'readonly': False}, + 'power' : {'type': 'float' , 'optional': True , 'readonly': False}, + 'head' : {'type': 'str' , 'optional': True , 'readonly': False}, + 'speed' : {'type': 'float' , 'optional': True , 'readonly': False}, + 'pattern' : {'type': 'str' , 'optional': True , 'readonly': False} } def get_pump(name: str, id: str) -> dict[str, Any]: