1
mirror of https://github.com/home-assistant/core synced 2024-07-27 18:58:57 +02:00

Bugfix temp step list out of range sensibo (#65782)

This commit is contained in:
G Johansson 2022-02-05 12:53:27 +01:00 committed by GitHub
parent 5613a80d28
commit 07edbc42a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ class SensiboDataUpdateCoordinator(DataUpdateCoordinator):
temperatures_list = (
current_capabilities["temperatures"]
.get(temperature_unit_key, {})
.get("values", [0])
.get("values", [0, 1])
)
if temperatures_list:
temperature_step = temperatures_list[1] - temperatures_list[0]