mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-03-17 07:19:12 +00:00
move steps abstract method into VbanCmd.
This commit is contained in:
parent
22cc980fc2
commit
ba85373f94
@ -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)
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user