diff --git a/drivers/nuos/device.ts b/drivers/nuos/device.ts index 55d01a8..2e8a717 100644 --- a/drivers/nuos/device.ts +++ b/drivers/nuos/device.ts @@ -569,15 +569,14 @@ class NuosDevice extends Device { } async #setTargetTemperatureMinMax( - settings: Settings = this.getSettings() as Settings, + { min, max }: Settings = this.getSettings() as Settings, ): Promise { - const { min, max } = settings const options = this.getCapabilityOptions('target_temperature') if (min !== options.min || max !== options.max) { await this.setCapabilityOptions('target_temperature', { ...options, - ...(typeof max === 'undefined' ? {} : { max }), ...(typeof min === 'undefined' ? {} : { min }), + ...(typeof max === 'undefined' ? {} : { max }), }) await this.setWarning(this.homey.__('warnings.settings')) }