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 1 commit
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
Next Next commit
jvcproj plugin: add super.init, bump version to 1.0.1
  • Loading branch information
onkelandy committed Nov 6, 2023
commit 9d1eacb1ffbc9b8dcd8ce2e43aca1acc37abd2f7
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
5 changes: 1 addition & 4 deletions jvcproj/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ plugin:
maintainer: NPortz
tester: '?'
state: ready
# keywords: iot xyz
# documentation: https://github.com/smarthomeNG/smarthome/wiki/CLI-Plugin # url of documentation (wiki) page
support: https://knx-user-forum.de/forum/supportforen/smarthome-py/1188479-plugin-steuerung-von-jvc-d-ila-projektoren

version: 1.0.0 # Plugin version
version: 1.0.1 # Plugin version
sh_minversion: 1.3 # minimum shNG version to use this plugin
# sh_maxversion: # maximum shNG version to use this plugin (leave empty if latest)
multi_instance: False # plugin supports multi instance
Expand Down Expand Up @@ -57,4 +55,3 @@ logic_parameters: NONE

plugin_functions: NONE
# Definition of function interface of the plugin