Skip to content

Commit

Permalink
Add unit of measurement to map rotation attribute in config and optio…
Browse files Browse the repository at this point in the history
…n flow
  • Loading branch information
ufozone committed Feb 25, 2024
1 parent 8fe7206 commit 9ea6c9f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 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,
DEGREE,
UnitOfTime,
)
from homeassistant.data_entry_flow import FlowResult
Expand Down Expand Up @@ -288,9 +289,10 @@ async def async_step_map(
): selector.NumberSelector(
selector.NumberSelectorConfig(
mode=selector.NumberSelectorMode.BOX,
min=-359.99,
max=359.99,
min=-360,
max=360,
step=0.01,
unit_of_measurement=DEGREE,
)
),
vol.Optional(
Expand Down Expand Up @@ -762,9 +764,10 @@ async def async_step_map(
): selector.NumberSelector(
selector.NumberSelectorConfig(
mode=selector.NumberSelectorMode.BOX,
min=-359.99,
max=359.99,
min=-360,
max=360,
step=0.01,
unit_of_measurement=DEGREE,
)
),
vol.Optional(
Expand Down

0 comments on commit 9ea6c9f

Please sign in to comment.