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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user