Skip to content

Commit

Permalink
CloudDimmedLight: Remove fake variables from cbor message
Browse files Browse the repository at this point in the history
   - Is not possible to associate a color widget to a CloudDimmedLight variable
  • Loading branch information
pennam committed Dec 1, 2022
1 parent 27c05bc commit adfc649
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/property/types/automation/CloudDimmedLight.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,7 @@ class CloudDimmedLight : public Property {

virtual CborError appendAttributesToCloud(CborEncoder *encoder) {
CHECK_CBOR_MULTI(appendAttribute(_value.swi, "swi", encoder));
// To allow visualization through color widget
// Start
float hue = 0;
float sat = 0;
CHECK_CBOR_MULTI(appendAttribute(hue, "hue", encoder));
CHECK_CBOR_MULTI(appendAttribute(sat, "sat", encoder));
CHECK_CBOR_MULTI(appendAttribute(_value.bri, "bri", encoder));
// should be only:
// appendAttribute(_value.bri);
// end
return CborNoError;
}

Expand Down

0 comments on commit adfc649

Please sign in to comment.