Skip to content

Commit

Permalink
fix init parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Nov 24, 2023
1 parent 39dbee8 commit 3fcbe83
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion comfoair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ComfoAir(SmartPlugin):
ALLOW_MULTIINSTANCE = False
PLUGIN_VERSION = '1.3.1'

def __init__(self):
def __init__(self, **kwargs):
self.logger = logging.getLogger('ComfoAir')
self.connected = False
self._params = {}
Expand Down
2 changes: 1 addition & 1 deletion intercom_2n/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Intercom2n(SmartPlugin):
PLUGIN_VERSION = "1.3.1"
ALLOW_MULTIINSTANCE = False

def __init__(self):
def __init__(self, **kwargs):
self._intercom_ip = self.get_parameter_value('intercom_ip')
self._ssl = self.get_parameter_value('ssl')
self._auth_type = self.get_parameter_value('auth_type')
Expand Down
2 changes: 1 addition & 1 deletion jvcproj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class JVC_DILA_Control(SmartPlugin):
ALLOW_MULTIINSTANCE = False
PLUGIN_VERSION = '1.0.2'

def __init__(self):
def __init__(self, **kwargs):
"""
Initalizes the plugin. The parameters describe for this method are pulled from the entry in plugin.conf.
:param host: JVC DILA Projectors IP address
Expand Down
2 changes: 1 addition & 1 deletion kostal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Kostal(SmartPlugin):
'l3_watt': 'ac3_w'
}

def __init__(self):
def __init__(self, **kwargs):
self.ip = self.get_parameter_value('ip')
self.user = self.get_parameter_value('user')
self.passwd = self.get_parameter_value('passwd')
Expand Down
4 changes: 2 additions & 2 deletions luxtronic2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class LuxBase(SmartPlugin):

# ATTENTION: This is NOT the SmartPlugin class of the plugin!!!

def __init__(self, host, port=8888):
def __init__(self, host, port=8888, **kwargs):
self.logger = logging.getLogger(__name__)
self.host = host
self.port = int(port)
Expand Down Expand Up @@ -260,7 +260,7 @@ class Luxtronic2(LuxBase):
_decoded = {}
alive = True

def __init__(self):
def __init__(self, **kwargs):
self._is_connected = False
self._cycle = self.get_parameter_value('cycle')
LuxBase.__init__(self, self.get_parameter_value('host'), self.get_parameter_value('port'))
Expand Down
2 changes: 1 addition & 1 deletion plex/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Plex(SmartPlugin):
PLUGIN_VERSION = "1.0.1"
ALLOW_MULTIINSTANCE = False

def __init__(self):
def __init__(self, **kwargs):
self._displayTime = self.get_parameter_value('displaytime')
self.logger.info("Init Plex notifications")
self._images = ["info", "error", "warning"]
Expand Down
2 changes: 1 addition & 1 deletion rcswitch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class RCswitch(SmartPlugin):
ALLOW_MULTIINSTANCE = False
PLUGIN_VERSION = "1.2.2"

def __init__(self):
def __init__(self, **kwargs):
self.logger = logging.getLogger(__name__)
self.setupOK = True
self.mapping = {'a': 1, 'A': 1, 'b': 2, 'B': 2, 'c': 3, 'C': 3, 'd': 4, 'D': 4, 'e': 5, 'E': 5}
Expand Down
2 changes: 1 addition & 1 deletion roomba_980/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ROOMBA_980(SmartPlugin):

myroomba = None

def __init__(self):
def __init__(self, **kwargs):
self._address = self.get_parameter_value('adress')
self._blid = self.get_parameter_value('blid')
self._roombaPassword = self.get_parameter_value('roombaPassword')
Expand Down
2 changes: 1 addition & 1 deletion sma/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class SMA(SmartPlugin):
ALLOW_MULTIINSTANCE = False
PLUGIN_VERSION = "1.3.2"

def __init__(self):
def __init__(self, **kwargs):
# TODO: self._own_bt_addr setzen
self.logger = logging.getLogger(__name__)
self._inv_bt_addr = self.get_parameter_value('bt_addr')
Expand Down
2 changes: 1 addition & 1 deletion smarttv/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class SmartTV(SmartPlugin):
ALLOW_MULTIINSTANCE = True
PLUGIN_VERSION = "1.3.3"

def __init__(self):
def __init__(self, **kwargs):
self.logger = logging.getLogger(__name__)
self._tv_version = self.get_parameter_value('tv_version')
self._host = self.get_parameter_value('host')
Expand Down
2 changes: 1 addition & 1 deletion sml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Sml(SmartPlugin):
'smart-meter-gateway-com-1': 'hex'
}

def __init__(self):
def __init__(self, **kwargs):
self.host = self.get_parameter_value('host')
self.port = self.get_parameter_value('port')
self.serialport = self.get_parameter_value('serialport')
Expand Down
2 changes: 1 addition & 1 deletion systemair/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Systemair(SmartPlugin):
PLUGIN_VERSION = "1.3.1"
ALLOW_MULTIINSTANCE = False

def __init__(self):
def __init__(self, **kwargs):
self.instrument = None
self.serialport = self.get_parameter_value('serialport')
self.slave_address = self.get_parameter_value('slave_address')
Expand Down

0 comments on commit 3fcbe83

Please sign in to comment.