Refine pump schema
This commit is contained in:
@@ -261,7 +261,7 @@ def get_pump(name: str, id: str) -> dict[str, Any]:
|
||||
def set_pump(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.set_pump(name, cs)
|
||||
|
||||
# example: add_pump(p, ChangeSet({'id': 'p0', 'node1': 'j1', 'node2': 'j2'}))
|
||||
# example: add_pump(p, ChangeSet({'id': 'p0', 'node1': 'j1', 'node2': 'j2', 'power': 0}))
|
||||
def add_pump(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
return api.add_pump(name, cs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user