refactor(io): Rename GetIO method to GetByName in IO manager
Signed-off-by: Sven Sager <s.sager@kunbus.com>
This commit is contained in:
@@ -240,7 +240,7 @@ class InterfaceIoManager:
|
|||||||
<method name="GetAllOutputs">
|
<method name="GetAllOutputs">
|
||||||
<arg name="object-path-list" type="ao" direction="out"/>
|
<arg name="object-path-list" type="ao" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
<method name="GetIO">
|
<method name="GetByName">
|
||||||
<arg name="name" type="s" direction="in"/>
|
<arg name="name" type="s" direction="in"/>
|
||||||
<arg name="object-path" type="o" direction="out"/>
|
<arg name="object-path" type="o" direction="out"/>
|
||||||
</method>
|
</method>
|
||||||
@@ -291,7 +291,7 @@ class InterfaceIoManager:
|
|||||||
def GetAllOutputs(self) -> list[str]:
|
def GetAllOutputs(self) -> list[str]:
|
||||||
return self.lst_out_object_path
|
return self.lst_out_object_path
|
||||||
|
|
||||||
def GetIO(self, io_name) -> str:
|
def GetByName(self, io_name) -> str:
|
||||||
if io_name in self._dc_io_interfaces:
|
if io_name in self._dc_io_interfaces:
|
||||||
return self._dc_io_interfaces[io_name].object_path
|
return self._dc_io_interfaces[io_name].object_path
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user