repr method added to factory base

This commit is contained in:
onyx-and-iris 2023-07-08 07:59:51 +01:00
parent 2c8659a4e5
commit 4de384c66c

View File

@ -108,6 +108,12 @@ class FactoryBase(VbanCmd):
def __str__(self) -> str: def __str__(self) -> str:
return f"Voicemeeter {self.kind}" return f"Voicemeeter {self.kind}"
def __repr__(self):
return (
type(self).__name__
+ f"({self.kind}, ip='{self.ip}', port={self.port}, streamname='{self.streamname}')"
)
@property @property
@abstractmethod @abstractmethod
def steps(self): def steps(self):