hoffmation-base 3.2.10-alpha.4 → 3.2.10-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,7 +147,7 @@ class WeatherService {
147
147
  }
148
148
  static weatherRolloPosition(normalPos, desiredTemperatur, currentTemperatur, logger, shutterSettings) {
149
149
  let result = normalPos;
150
- if (currentTemperatur < desiredTemperatur && currentTemperatur < shutterSettings.heatReductionThreshold) {
150
+ if (currentTemperatur < desiredTemperatur && currentTemperatur < shutterSettings.heatReductionDirectionThreshold) {
151
151
  logger(enums_1.LogLevel.Trace, 'RolloWeatherPosition: Room needs to heat up anyways.');
152
152
  return result;
153
153
  }
@@ -155,8 +155,7 @@ class WeatherService {
155
155
  logger(enums_1.LogLevel.Trace, 'RolloWeatherPosition: Shutter should be down anyways.');
156
156
  return result;
157
157
  }
158
- else if (this.willOutsideBeWarmer(shutterSettings.heatReductionThreshold, logger) &&
159
- currentTemperatur > shutterSettings.heatReductionDirectionThreshold) {
158
+ else if (this.willOutsideBeWarmer(shutterSettings.heatReductionThreshold, logger)) {
160
159
  result = shutterSettings.heatReductionPosition;
161
160
  }
162
161
  else if (this.hoursTilSunset() < 1) {