[bindings l-n] Fix deprecated tag "required" (#10420)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-03-30 21:33:23 +02:00 committed by GitHub
parent 62a0e7ac02
commit 843e8d2904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 20 additions and 46 deletions

View File

@ -10,18 +10,15 @@
<label>Hostname</label> <label>Hostname</label>
<description>The hostname or the IP address of the PCK gateway</description> <description>The hostname or the IP address of the PCK gateway</description>
<context>network-address</context> <context>network-address</context>
<required>true</required>
</parameter> </parameter>
<parameter name="port" type="integer" required="true" min="1" max="65535"> <parameter name="port" type="integer" required="true" min="1" max="65535">
<label>Port</label> <label>Port</label>
<description>The IP port of the PCK gateway</description> <description>The IP port of the PCK gateway</description>
<default>4114</default> <default>4114</default>
<required>true</required>
</parameter> </parameter>
<parameter name="username" type="text" required="true"> <parameter name="username" type="text" required="true">
<label>Username</label> <label>Username</label>
<description>The login username of the PCK gateway</description> <description>The login username of the PCK gateway</description>
<required>true</required>
</parameter> </parameter>
<parameter name="password" type="text" required="true"> <parameter name="password" type="text" required="true">
<label>Password</label> <label>Password</label>
@ -36,7 +33,6 @@
<option value="native50">0 - 50</option> <option value="native50">0 - 50</option>
<option value="native200">0 - 200</option> <option value="native200">0 - 200</option>
</options> </options>
<required>true</required>
</parameter> </parameter>
<parameter name="timeoutMs" type="integer" required="true" unit="ms"> <parameter name="timeoutMs" type="integer" required="true" unit="ms">
<label>Connection Timeout</label> <label>Connection Timeout</label>
@ -91,7 +87,6 @@
<option value="angle">Angle (°)</option> <option value="angle">Angle (°)</option>
<option value="windspeed">Windspeed (m/s)</option> <option value="windspeed">Windspeed (m/s)</option>
</options> </options>
<required>true</required>
</parameter> </parameter>
<parameter name="parameter" type="integer" min="1"> <parameter name="parameter" type="integer" min="1">
<label>Pulses per kWh</label> <label>Pulses per kWh</label>

View File

@ -4,17 +4,15 @@
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0
https://openhab.org/schemas/config-description-1.0.0.xsd"> https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:lgtvserial:serial"> <config-description uri="thing-type:lgtvserial:serial">
<parameter name="port" type="text"> <parameter name="port" type="text" required="true">
<context>serial-port</context> <context>serial-port</context>
<limitToOptions>false</limitToOptions> <limitToOptions>false</limitToOptions>
<label>Serial Port</label> <label>Serial Port</label>
<description>Select serial port (COM1, /dev/ttyS0, ...)</description> <description>Select serial port (COM1, /dev/ttyS0, ...)</description>
<required>true</required>
</parameter> </parameter>
<parameter name="setId" type="integer"> <parameter name="setId" type="integer" required="true">
<label>Set ID</label> <label>Set ID</label>
<description>Set ID configured in the TV. If 0, this will send a command to every chained TV.</description> <description>Set ID configured in the TV. If 0, this will send a command to every chained TV.</description>
<required>true</required>
<default>1</default> <default>1</default>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -23,10 +23,9 @@
<representation-property>macAddress</representation-property> <representation-property>macAddress</representation-property>
<config-description uri="thing-type:magentatv:receiver"> <config-description uri="thing-type:magentatv:receiver">
<parameter name="ipAddress" type="text"> <parameter name="ipAddress" type="text" required="true">
<label>Device IP Address</label> <label>Device IP Address</label>
<description>IP address of the receiver</description> <description>IP address of the receiver</description>
<required>true</required>
<context>network-address</context> <context>network-address</context>
</parameter> </parameter>
<parameter name="accountName" type="text"> <parameter name="accountName" type="text">
@ -42,10 +41,9 @@
<label>User ID</label> <label>User ID</label>
<description>Technical User ID required for pairing process</description> <description>Technical User ID required for pairing process</description>
</parameter> </parameter>
<parameter name="udn" type="text"> <parameter name="udn" type="text" required="true">
<label>Unique Device Name</label> <label>Unique Device Name</label>
<description>The UDN identifies the Media Receiver</description> <description>The UDN identifies the Media Receiver</description>
<required>true</required>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
<parameter name="port" type="text"> <parameter name="port" type="text">

View File

@ -118,7 +118,6 @@
<config-description> <config-description>
<parameter name="folder" type="text" required="true"> <parameter name="folder" type="text" required="true">
<label>Folder Name</label> <label>Folder Name</label>
<required>true</required>
</parameter> </parameter>
<parameter name="type" type="text" required="false"> <parameter name="type" type="text" required="false">
<options> <options>

View File

@ -5,10 +5,9 @@
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd"> xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:mihome:device"> <config-description uri="thing-type:mihome:device">
<parameter name="itemId" type="text"> <parameter name="itemId" type="text" required="true">
<label>MiHome Device ID</label> <label>MiHome Device ID</label>
<description>The identifier of this MiHome device</description> <description>The identifier of this MiHome device</description>
<required>true</required>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>
@ -20,33 +19,29 @@
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
<parameter name="ipAddress" type="text"> <parameter name="ipAddress" type="text" required="true">
<context>network-address</context> <context>network-address</context>
<label>Network Address</label> <label>Network Address</label>
<description>Network address of this Xiaomi bridge</description> <description>Network address of this Xiaomi bridge</description>
<required>true</required>
</parameter> </parameter>
<parameter name="port" type="integer"> <parameter name="port" type="integer" required="true">
<context>network-address</context> <context>network-address</context>
<label>Port</label> <label>Port</label>
<description>Port of the MiHome communication channel</description> <description>Port of the MiHome communication channel</description>
<required>true</required>
<default>9898</default> <default>9898</default>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
<parameter name="interface" type="text"> <parameter name="interface" type="text" required="false">
<label>Interface</label> <label>Interface</label>
<description>Interface to bind to for the MiHome communication channel</description> <description>Interface to bind to for the MiHome communication channel</description>
<required>false</required>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
<parameter name="key" type="text"> <parameter name="key" type="text" required="false">
<label>Developer Key</label> <label>Developer Key</label>
<description>Developer key extracted from Xiaomi's app</description> <description>Developer key extracted from Xiaomi's app</description>
<required>false</required>
</parameter> </parameter>
</config-description> </config-description>
</config-description:config-descriptions> </config-description:config-descriptions>

View File

@ -6,22 +6,19 @@
<description>Binding for Xiaomi Mi IO devices like Mi Robot Vacuum</description> <description>Binding for Xiaomi Mi IO devices like Mi Robot Vacuum</description>
<config-description> <config-description>
<parameter name="username" type="text"> <parameter name="username" type="text" required="false">
<label>Xiaomi cloud username</label> <label>Xiaomi cloud username</label>
<description>Xiaomi cloud username. Typically your email</description> <description>Xiaomi cloud username. Typically your email</description>
<required>false</required>
</parameter> </parameter>
<parameter name="password" type="text"> <parameter name="password" type="text" required="false">
<label>Xiaomi cloud password</label> <label>Xiaomi cloud password</label>
<required>false</required>
</parameter> </parameter>
<parameter name="country" type="text"> <parameter name="country" type="text" required="false">
<label>Xiaomi server country</label> <label>Xiaomi server country</label>
<description>Xiaomi server country(s) (e.g. sg,de). Separate multiple servers with comma. Leave empty for all. See <description>Xiaomi server country(s) (e.g. sg,de). Separate multiple servers with comma. Leave empty for all. See
binding readme for country to server mapping</description> binding readme for country to server mapping</description>
<required>false</required>
</parameter> </parameter>
<parameter name="cloudDiscoveryMode" type="text"> <parameter name="cloudDiscoveryMode" type="text" required="false">
<default>disabled</default> <default>disabled</default>
<label>Cloud Discovery Mode</label> <label>Cloud Discovery Mode</label>
<description>Allow for discovery via the cloud. This may be used for devices that are not on the same network as <description>Allow for discovery via the cloud. This may be used for devices that are not on the same network as
@ -31,7 +28,6 @@
<option value="supportedOnly">Discover online supported devices from Xiaomi cloud</option> <option value="supportedOnly">Discover online supported devices from Xiaomi cloud</option>
<option value="all">Discover all online devices from Xiaomi cloud</option> <option value="all">Discover all online devices from Xiaomi cloud</option>
</options> </options>
<required>false</required>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -75,18 +75,16 @@
<representation-property>mac</representation-property> <representation-property>mac</representation-property>
<config-description> <config-description>
<parameter name="hostname" type="text"> <parameter name="hostname" type="text" required="true">
<label>Hostname</label> <label>Hostname</label>
<description>The host name or IP address of the myStrom bulb.</description> <description>The host name or IP address of the myStrom bulb.</description>
<context>network-address</context> <context>network-address</context>
<default>localhost</default> <default>localhost</default>
<required>true</required>
</parameter> </parameter>
<parameter name="refresh" type="integer" unit="s" min="1"> <parameter name="refresh" type="integer" unit="s" min="1" required="true">
<label>Refresh Interval</label> <label>Refresh Interval</label>
<description>Specifies the refresh interval in seconds.</description> <description>Specifies the refresh interval in seconds.</description>
<default>10</default> <default>10</default>
<required>true</required>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -9,16 +9,14 @@
<description>Access to Neato Account. Used to discover robots tied to account.</description> <description>Access to Neato Account. Used to discover robots tied to account.</description>
<config-description> <config-description>
<parameter name="email" type="text"> <parameter name="email" type="text" required="true">
<label>E-mail Address</label> <label>E-mail Address</label>
<description>E-mail address for your Neato Cloud account.</description> <description>E-mail address for your Neato Cloud account.</description>
<required>true</required>
<context>email</context> <context>email</context>
</parameter> </parameter>
<parameter name="password" type="text"> <parameter name="password" type="text" required="true">
<label>Password</label> <label>Password</label>
<description>Password for your Neato Cloud account.</description> <description>Password for your Neato Cloud account.</description>
<required>true</required>
<context>password</context> <context>password</context>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -14,15 +14,13 @@
<description>Local settings</description> <description>Local settings</description>
</parameter-group> </parameter-group>
<parameter name="productId" type="text" groupName="oauth"> <parameter name="productId" type="text" groupName="oauth" required="true">
<label>Product ID</label> <label>Product ID</label>
<description>The product ID from the Nest product page</description> <description>The product ID from the Nest product page</description>
<required>true</required>
</parameter> </parameter>
<parameter name="productSecret" type="text" groupName="oauth"> <parameter name="productSecret" type="text" groupName="oauth" required="true">
<label>Product Secret</label> <label>Product Secret</label>
<description>The product secret from the Nest product page</description> <description>The product secret from the Nest product page</description>
<required>true</required>
</parameter> </parameter>
<parameter name="pincode" type="text" groupName="oauth"> <parameter name="pincode" type="text" groupName="oauth">
<label>Pincode</label> <label>Pincode</label>

View File

@ -8,11 +8,10 @@
and Welcome Camera.</description> and Welcome Camera.</description>
<config-description> <config-description>
<parameter name="backgroundDiscovery" type="boolean"> <parameter name="backgroundDiscovery" type="boolean" required="false">
<label>Background Discovery</label> <label>Background Discovery</label>
<description>If set to true, the device and its associated modules are updated in the discovery inbox at each API <description>If set to true, the device and its associated modules are updated in the discovery inbox at each API
call run to refresh device data. Default is false.</description> call run to refresh device data. Default is false.</description>
<required>false</required>
<default>false</default> <default>false</default>
</parameter> </parameter>
</config-description> </config-description>