Skip to content

Commit

Permalink
oppo plugin: fix metadata, remove protocol from plugin.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Aug 17, 2024
1 parent a7e54e6 commit 2615ea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
3 changes: 2 additions & 1 deletion oppo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class oppo(SmartDevicePlugin):
"""

PLUGIN_VERSION = '1.0.1'
MIN_SDP_VERSION = '1.0.3'

def _set_device_defaults(self):

Expand All @@ -63,7 +64,7 @@ def _set_device_defaults(self):
self._parameters[PLUGIN_ATTR_CONNECTION] = CONN_NET_TCP_CLI
elif PLUGIN_ATTR_SERIAL_PORT in self._parameters and self._parameters[PLUGIN_ATTR_SERIAL_PORT]:
self._parameters[PLUGIN_ATTR_CONNECTION] = CONN_SER_ASYNC

self._parameters[PLUGIN_ATTR_CMD_CLASS] = SDPCommandParseStr

b = self._parameters[PLUGIN_ATTR_CONN_TERMINATOR].encode()
Expand Down
13 changes: 1 addition & 12 deletions oppo/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugin:
version: 1.0.1
sh_minversion: '1.9.5.1'
py_minversion: '3.6'
MIN_SDP_VERSION: '1.0.3'
multi_instance: false
restartable: true
classname: oppo
Expand Down Expand Up @@ -169,16 +168,6 @@ parameters:
de: Item-Pfad für das Standby-Item
en: item path for standby switch item

protocol:
type: str
default: ''
valid list:
- ''
- 'resend'
description:
de: 'Protokoll'
en: 'Protocol'

send_retries:
type: num
default: 0
Expand Down Expand Up @@ -232,7 +221,7 @@ parameters:
description:
de: 'Bei resume vom Plugin erstmaliges Lesen erneut durchführen'
en: 'Repeat initial read on resume'


item_attributes:

Expand Down

0 comments on commit 2615ea6

Please sign in to comment.