1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-02-15 07:25:54 +00:00

Expose target_humidity_step value to climate (#28834)

Add target_humidity_step to climate
This commit is contained in:
Tom
2026-02-03 08:34:53 +01:00
committed by GitHub
parent b902f3e6f5
commit 55e251c04f
2 changed files with 4 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ export type ClimateEntity = HassEntityBase & {
current_humidity?: number;
target_humidity_low?: number;
target_humidity_high?: number;
target_humidity_step?: number;
min_humidity?: number;
max_humidity?: number;
fan_mode?: string;

View File

@@ -45,7 +45,9 @@ export class HaStateControlClimateHumidity extends LitElement {
}
}
private _step = 1;
private get _step() {
return this.stateObj.attributes.target_humidity_step ?? 1;
}
private get _min() {
return this.stateObj.attributes.min_humidity ?? 0;