From 109f13fa830db4776ef7e69c95557792f7137046 Mon Sep 17 00:00:00 2001 From: Christoph Wiechert Date: Thu, 9 Jan 2025 22:19:37 +0100 Subject: [PATCH] feat(heater): Add temp_step option --- config_schema.yaml | 3 +++ devices/heater.js | 1 + 2 files changed, 4 insertions(+) diff --git a/config_schema.yaml b/config_schema.yaml index fbd1ca8..8535318 100644 --- a/config_schema.yaml +++ b/config_schema.yaml @@ -318,6 +318,9 @@ properties: max_temp: description: "The maximum value of the heater widget in Home Assistant" type: number + temp_step: + type: number + description: "Step size for temperature set point." required: - type - name diff --git a/devices/heater.js b/devices/heater.js index bb09968..8ce2bce 100644 --- a/devices/heater.js +++ b/devices/heater.js @@ -107,6 +107,7 @@ module.exports = class devHeater extends device { 'name', 'min_temp', 'max_temp', + 'temp_step' ].forEach((key) => { if(this.config[key]) { info[key] = this.config[key];