openhab/openhab — pull request #1810 by polarvogel (2014-12-07 15:33:22+00:00)
Title: fix writing TemperatureSetPoint to battery/valve

If the BindingType is BATTERY or VALVE, the previous version of the MaxCubeBinding.java tried to write the TemperatureSetPoint to a "Battery Low Item" or "Valve Position Item" on every update of TemperatureSetpoint, because 'if's and 'case's fall down to line 295, ignoring the BindingType.

Adding a break; for the BindingType.VALVE and an if-statement for the BindingType.Battery should solve this issue.