Skip to content

Commit

Permalink
[mqtt.espmilighthub] fix upgrade instructions (#16127)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ccutrer authored and jlaur committed Dec 27, 2023
1 parent 222c40b commit 2a05265
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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>

Expand All @@ -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>

Expand Down

0 comments on commit 2a05265

Please sign in to comment.