From e9ef113b5c58849e0917a02d671a5aa311bcecdd Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 8 Feb 2024 17:41:56 +0000 Subject: [PATCH] upd __init__ methods --- xair_api/shared.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/xair_api/shared.py b/xair_api/shared.py index 1ec6809..538545f 100644 --- a/xair_api/shared.py +++ b/xair_api/shared.py @@ -467,10 +467,7 @@ class EQ: class EQBand: def __init__(self, i, remote, index): - if index is None: - super(EQ.EQBand, self).__init__(remote) - else: - super(EQ.EQBand, self).__init__(remote, index) + super(EQ.EQBand, self).__init__(remote, index) self.i = i @property @@ -629,9 +626,7 @@ class Automix: class Send: def __init__(self, remote, i, index: Optional[int] = None): - self._remote = remote - if index is not None: - self.index = index + 1 + super(Send, self).__init__(remote, index) self.i = i + 1 @classmethod