[mqtt.espmilighthub] fix upgrade instructions (#16127)

since #13801, it's not been possible to add new milight things,
because the thing XML already has the new channel types, but not
the thingTypeVersion property set, so it would try to apply the
update instructions and error about duplicate channels

Signed-off-by: Cody Cutrer <cody@cutrer.us>
pull/16128/head
Cody Cutrer 2023-12-27 16:21:50 -07:00 committed by GitHub
parent 6540d0dda9
commit e81550fc98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,9 @@
<channel id="bulbMode" typeId="bulbMode"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:rgbandcct"/>
</thing-type>
@ -37,6 +40,9 @@
<channel id="bulbMode" typeId="bulbMode"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:rgbandcct"/>
</thing-type>
@ -53,6 +59,9 @@
<channel id="colourTemperatureAbs" typeId="system.color-temperature-abs"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:cct"/>
</thing-type>
@ -69,6 +78,9 @@
<channel id="colourTemperatureAbs" typeId="system.color-temperature-abs"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:cct"/>
</thing-type>
@ -85,6 +97,9 @@
<channel id="bulbMode" typeId="bulbMode"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:rgbw"/>
</thing-type>
@ -101,6 +116,9 @@
<channel id="bulbMode" typeId="bulbMode"/>
<channel id="command" typeId="command"/>
</channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description-ref uri="thing-type:mqtt:rgb"/>
</thing-type>