From ba85373f949c9d61634ec9cecfe9e5b1e06558ca Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Mon, 16 Mar 2026 23:16:01 +0000 Subject: [PATCH] move steps abstract method into VbanCmd. --- vban_cmd/factory.py | 6 ------ vban_cmd/vbancmd.py | 5 +++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/vban_cmd/factory.py b/vban_cmd/factory.py index 68e42c1..3f3b5e3 100644 --- a/vban_cmd/factory.py +++ b/vban_cmd/factory.py @@ -1,4 +1,3 @@ -import abc import logging from enum import IntEnum from functools import cached_property @@ -122,11 +121,6 @@ class FactoryBase(VbanCmd): + f"({self.kind}, ip='{self.ip}', port={self.port}, streamname='{self.streamname}')" ) - @property - @abc.abstractmethod - def steps(self): - pass - @cached_property def configs(self): self._configs = configs(self.kind.name) diff --git a/vban_cmd/vbancmd.py b/vban_cmd/vbancmd.py index dfcc625..571dcfd 100644 --- a/vban_cmd/vbancmd.py +++ b/vban_cmd/vbancmd.py @@ -56,9 +56,10 @@ class VbanCmd(abc.ABC): self.producer = None self._last_script_request_time = 0 + @property @abc.abstractmethod - def __str__(self): - """Ensure subclasses override str magic method""" + def steps(self): + """Steps required to build the interface for this Voicemeeter kind""" def _conn_from_toml(self) -> dict: try: