Format pump schema
This commit is contained in:
@@ -3,13 +3,13 @@ from .s0_base import *
|
|||||||
|
|
||||||
|
|
||||||
def get_pump_schema(name: str) -> dict[str, dict[str, Any]]:
|
def get_pump_schema(name: str) -> dict[str, dict[str, Any]]:
|
||||||
return { 'id' : {'type': 'str' , 'optional': False , 'readonly': True },
|
return { 'id' : {'type': 'str' , 'optional': False , 'readonly': True },
|
||||||
'node1' : {'type': 'str' , 'optional': False , 'readonly': False},
|
'node1' : {'type': 'str' , 'optional': False , 'readonly': False},
|
||||||
'node2' : {'type': 'str' , 'optional': False , 'readonly': False},
|
'node2' : {'type': 'str' , 'optional': False , 'readonly': False},
|
||||||
'power' : {'type': 'float' , 'optional': True , 'readonly': False},
|
'power' : {'type': 'float' , 'optional': True , 'readonly': False},
|
||||||
'head' : {'type': 'str' , 'optional': True , 'readonly': False},
|
'head' : {'type': 'str' , 'optional': True , 'readonly': False},
|
||||||
'speed' : {'type': 'float' , 'optional': True , 'readonly': False},
|
'speed' : {'type': 'float' , 'optional': True , 'readonly': False},
|
||||||
'pattern' : {'type': 'str' , 'optional': True , 'readonly': False} }
|
'pattern' : {'type': 'str' , 'optional': True , 'readonly': False} }
|
||||||
|
|
||||||
|
|
||||||
def get_pump(name: str, id: str) -> dict[str, Any]:
|
def get_pump(name: str, id: str) -> dict[str, Any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user