Skip to content

Commit

Permalink
Avoid to hardcoded max core climate timeout
Browse files Browse the repository at this point in the history
  * Bump asyncsleepiq to 1.5.3
  * Use the exposed SleepIQCoreClimate.max_core_climate_time
  • Loading branch information
dferg committed Jan 4, 2025
1 parent 7c5b616 commit 3db849b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/sleepiq/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"documentation": "https://www.home-assistant.io/integrations/sleepiq",
"iot_class": "cloud_polling",
"loggers": ["asyncsleepiq"],
"requirements": ["asyncsleepiq==1.5.2"]
"requirements": ["asyncsleepiq==1.5.3"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/sleepiq/number.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def _get_core_climate_unique_id(
CORE_CLIMATE_TIMER: SleepIQNumberEntityDescription(
key=CORE_CLIMATE_TIMER,
native_min_value=0,
native_max_value=600,
native_max_value=SleepIQCoreClimate.max_core_climate_time,
native_step=30,
name=ENTITY_TYPES[CORE_CLIMATE_TIMER],
icon="mdi:timer",
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ asyncinotify==4.0.2
asyncpysupla==0.0.5

# homeassistant.components.sleepiq
asyncsleepiq==1.5.2
asyncsleepiq==1.5.3

# homeassistant.components.aten_pe
# atenpdu==0.3.2
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ async-upnp-client==0.42.0
asyncarve==0.1.1

# homeassistant.components.sleepiq
asyncsleepiq==1.5.2
asyncsleepiq==1.5.3

# homeassistant.components.aurora
auroranoaa==0.0.5
Expand Down

0 comments on commit 3db849b

Please sign in to comment.