Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jvcproj Plugin: add super.init and user_doc #855

Merged
merged 3 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
248 changes: 0 additions & 248 deletions jvcproj/README.md

This file was deleted.

11 changes: 6 additions & 5 deletions jvcproj/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Copyright 2018 Nico P.
# THX to arvehj for the communication procedure (jvcprojectortools)
#########################################################################
# This file is part of SmartHomeNG.
# This file is part of SmartHomeNG.
#
# SmartHomeNG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -97,7 +97,7 @@ class JVC_DILA_Control(SmartPlugin):
the update functions for the items
"""
ALLOW_MULTIINSTANCE = False
PLUGIN_VERSION='1.0.0'
PLUGIN_VERSION='1.0.1'


def __init__(self, smarthome, host='0.0.0.0', gammaconf_dir='/usr/local/smarthome/etc/jvcproj/'):
Expand All @@ -107,6 +107,7 @@ def __init__(self, smarthome, host='0.0.0.0', gammaconf_dir='/usr/local/smarthom
:param gammaconf_dir: location where the gamma.conf files are saved
:port is fixed to 20554
"""
super().__init__()
self.logger = logging.getLogger(__name__)
self._sh=smarthome
self.host_port = (host, 20554)
Expand All @@ -116,7 +117,7 @@ def __init__(self, smarthome, host='0.0.0.0', gammaconf_dir='/usr/local/smarthom
def run(self):
"""
Run method for the plugin - called once to start the plugins processing
"""
"""
self.logger.debug("Plugin '{}': run method called".format(self.get_fullname()))
self.alive = True

Expand All @@ -130,7 +131,7 @@ def stop(self):
def parse_item(self, item):
"""
Plugin's parse_item method. Is called for every item when the plugin is initialized.

The plugin can, corresponding to its attribute keywords, decide what to do with
the item in future, like adding it to an internal array for future reference
:param item: The item to process.
Expand All @@ -157,7 +158,7 @@ def parse_logic(self, logic):
def update_item(self, item, caller=None, source=None, dest=None):
"""
Write items values

:param item: item to be updated towards the plugin
:param caller: if given it represents the callers name
:param source: if given it represents the source
Expand Down
Loading