Skip to content

Commit

Permalink
Fix target temperature step attribute name error (#4039)
Browse files Browse the repository at this point in the history
Fix wrong attribute name for the target temperature step. Correct one is target_temp_step (which is returned by the API) instead of target_temperature_step
  • Loading branch information
isonet authored Dec 13, 2023
1 parent 6b56bc5 commit 5d779a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object ClimateControl : HaControl {
}

val temperatureUnit = entity.attributes["temperature_unit"] ?: ""
val temperatureStepSize = (entity.attributes["target_temperature_step"] as? Number)?.toFloat()
val temperatureStepSize = (entity.attributes["target_temp_step"] as? Number)?.toFloat()
?: when (temperatureUnit) {
"°C" -> 0.5f
else -> 1f
Expand Down

0 comments on commit 5d779a2

Please sign in to comment.