]> git.basschouten.com Git - openhab-addons.git/commitdiff
[mcp23017] Standardize config URI (#11010)
authorlolodomo <lg.hc@free.fr>
Sat, 17 Jul 2021 21:37:44 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Sat, 17 Jul 2021 21:37:44 +0000 (23:37 +0200)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
bundles/org.openhab.binding.mcp23017/src/main/resources/OH-INF/config/config.xml
bundles/org.openhab.binding.mcp23017/src/main/resources/OH-INF/thing/channels.xml

index 3e7a171ae5db752d002b62e9335d5f85fae61d91..50f2d7c5d1ce917e1c6a771580e333cde459fe8e 100644 (file)
@@ -5,7 +5,7 @@
        xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0
                https://openhab.org/schemas/config-description-1.0.0.xsd">
 
-       <config-description uri="channel-type:input_pin:config">
+       <config-description uri="channel-type:mcp23017:input_pin">
                <parameter name="pull_mode" type="text" required="true">
                        <label>PullResistor Mode</label>
                        <description>mcp2317 input pull resistor mode</description>
@@ -17,7 +17,7 @@
                </parameter>
        </config-description>
 
-       <config-description uri="channel-type:output_pin:config">
+       <config-description uri="channel-type:mcp23017:output_pin">
                <parameter name="default_state" type="text" required="true">
                        <label>Default State</label>
                        <description>mcp2317 pin default state (LOW, HIGH)</description>
index 46108a0c3fc7a20baeb244211325e31f1b145e04..ce722a0dac1b6795e71ef738396a193749812432 100644 (file)
@@ -58,7 +58,7 @@
                <description>channel type for MCP23017 pin in DIGITAL_INPUT mode (contact)</description>
                <category>Contact</category>
                <state readOnly="false"/>
-               <config-description-ref uri="channel-type:input_pin:config"/>
+               <config-description-ref uri="channel-type:mcp23017:input_pin"/>
        </channel-type>
 
        <channel-type id="output_pin">
@@ -67,7 +67,7 @@
                <description>channel type for MCP23017 pin in DIGITAL_INPUT mode (switch)</description>
                <category>Switch</category>
                <state readOnly="true"/>
-               <config-description-ref uri="channel-type:output_pin:config"/>
+               <config-description-ref uri="channel-type:mcp23017:output_pin"/>
        </channel-type>
 
 </thing:thing-descriptions>