move steps abstract method into VbanCmd.

This commit is contained in:
onyx-and-iris 2026-03-16 23:16:01 +00:00
parent 22cc980fc2
commit ba85373f94
2 changed files with 3 additions and 8 deletions

View File

@ -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)

View File

@ -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: