Skip to content

Commit

Permalink
knx- and uzsu plugin: add super().__init__() to init
Browse files Browse the repository at this point in the history
  • Loading branch information
bmxp committed Jun 22, 2024
1 parent 50db491 commit eb406f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions knx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ class KNX(SmartPlugin):
PROVIDER_KNXMC = 'IP Router'

def __init__(self, smarthome):
"""Initializes the plugin."""

# call init code of parent class (SmartPlugin)
super().__init__()

self.provider = self.get_parameter_value('provider')
self.host = self.get_parameter_value('host')
self.port = self.get_parameter_value('port')
Expand Down
4 changes: 4 additions & 0 deletions uzsu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ def __init__(self, smarthome):
Initializes the plugin. The parameters describe for this method are pulled from the entry in plugin.conf.
:param smarthome: The instance of the smarthome object, save it for later references
"""

# call init code of parent class (SmartPlugin)
super().__init__()

self.itemsApi = Items.get_instance()
self._timezone = Shtime.get_instance().tzinfo()
self._remove_duplicates = self.get_parameter_value('remove_duplicates')
Expand Down

0 comments on commit eb406f8

Please sign in to comment.