mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-03-14 16:41:10 +01:00
minor code adjustment
* Preventing mixins [str -> Enum] bug in Python 3.11 [100458]
This commit is contained in:
@@ -652,6 +652,9 @@ class HttpAPI:
|
||||
N_ZAP = "zapto"
|
||||
N_STREAM = "build_playlist?id="
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
class Remote(str, Enum):
|
||||
""" Args for HttpRequestType [REMOTE] class. """
|
||||
ONE = "2"
|
||||
@@ -686,6 +689,9 @@ class HttpAPI:
|
||||
NEXT = "407"
|
||||
BACK = "412"
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
class Power(str, Enum):
|
||||
""" Args for HttpRequestType [POWER] class. """
|
||||
TOGGLE_STANDBY = "0"
|
||||
@@ -695,6 +701,9 @@ class HttpAPI:
|
||||
WAKEUP = "4"
|
||||
STANDBY = "5"
|
||||
|
||||
def __str__(self):
|
||||
return self.value
|
||||
|
||||
PARAM_REQUESTS = {Request.REMOTE,
|
||||
Request.POWER,
|
||||
Request.VOL,
|
||||
|
||||
Reference in New Issue
Block a user