Skip to content

Commit

Permalink
add unit of measurments at options
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus authored and Markus committed Nov 26, 2023
1 parent 04f4112 commit 8bd365e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom_components/zcsmower/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from homeassistant.const import (
CONF_NAME,
ATTR_NAME,
UnitOfTime,
)
from homeassistant.data_entry_flow import FlowResult
from homeassistant.helpers import (
Expand Down Expand Up @@ -871,6 +872,7 @@ async def async_step_settings(
min=30,
max=300,
step=30,
unit_of_measurement=UnitOfTime.SECONDS,
)
),
# Update interval, if all lawn mowers on standby
Expand All @@ -886,6 +888,7 @@ async def async_step_settings(
min=120,
max=3600,
step=60,
unit_of_measurement=UnitOfTime.SECONDS,
)
),
# Update interval, if all lawn mowers idling
Expand All @@ -901,6 +904,7 @@ async def async_step_settings(
min=600,
max=86400,
step=600,
unit_of_measurement=UnitOfTime.SECONDS,
)
),
# Trace position
Expand All @@ -921,6 +925,7 @@ async def async_step_settings(
min=300,
max=21600,
step=300,
unit_of_measurement=UnitOfTime.SECONDS,
)
),
# Wake up interval (Infinity+ plan)
Expand All @@ -936,6 +941,7 @@ async def async_step_settings(
min=300,
max=21600,
step=300,
unit_of_measurement=UnitOfTime.SECONDS,
)
),
}
Expand Down

0 comments on commit 8bd365e

Please sign in to comment.