Add "Act" switch to companion (fix #6851) (#6854)

This commit is contained in:
Andre Bernet
2019-09-30 17:56:12 +02:00
committed by Bertrand Songis
parent af5f3586f2
commit 4f614850c4
4 changed files with 10 additions and 0 deletions
@@ -217,6 +217,10 @@ class SwitchesConversionTable: public ConversionTable {
addConversion(RawSwitch(SWITCH_TYPE_SENSOR, i), val++);
}
}
if (version >= 219) {
addConversion(RawSwitch(SWITCH_TYPE_ACT, -1), -val+offset);
addConversion(RawSwitch(SWITCH_TYPE_ACT, 1), val++);
}
}