Skip to content

Commit

Permalink
Apply correct type for "Color lights"
Browse files Browse the repository at this point in the history
  • Loading branch information
HahnBenjamin committed Jun 15, 2020
1 parent 89b4e16 commit 72c30a6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,9 @@ private void addLight(String lightID, LightMessage light) {
thingTypeUID = THING_TYPE_COLOR_TEMPERATURE_LIGHT;
break;
case COLOR_DIMMABLE_LIGHT:
thingTypeUID = THING_TYPE_COLOR_LIGHT;
break;
case COLOR_LIGHT:
thingTypeUID = (light.ctmin != null) ?THING_TYPE_EXTENDED_COLOR_LIGHT :THING_TYPE_COLOR_LIGHT;
break;
thingTypeUID = THING_TYPE_COLOR_LIGHT;
break;
case EXTENDED_COLOR_LIGHT:
thingTypeUID = THING_TYPE_EXTENDED_COLOR_LIGHT;
break;
Expand Down

0 comments on commit 72c30a6

Please sign in to comment.