add defaultkwarg into eventclient

This commit is contained in:
onyx-and-iris 2022-07-27 19:49:37 +01:00
parent b1c281e8a1
commit 95b1cb27da

View File

@ -23,7 +23,8 @@ class EventClient(object):
DELAY = 0.001 DELAY = 0.001
def __init__(self, **kwargs): def __init__(self, **kwargs):
kwargs["subs"] = ( defaultkwargs = dict()
defaultkwargs["subs"] = (
(1 << Subs.general) (1 << Subs.general)
| (1 << Subs.config) | (1 << Subs.config)
| (1 << Subs.scenes) | (1 << Subs.scenes)
@ -36,6 +37,7 @@ class EventClient(object):
| (1 << Subs.vendors) | (1 << Subs.vendors)
| (1 << Subs.ui) | (1 << Subs.ui)
) )
kwargs = defaultkwargs | kwargs
self.base_client = ObsClient(**kwargs) self.base_client = ObsClient(**kwargs)
self.base_client.authenticate() self.base_client.authenticate()
self.callback = Callback() self.callback = Callback()