Skip to content

Commit

Permalink
Change minimum scan_interval to 0.5 minutes (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnbruckner authored Dec 29, 2023
1 parent f7bc3fa commit ef4a333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/illuminance/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def async_step_options(
default=self.options.get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL_MIN),
): NumberSelector(
NumberSelectorConfig(
min=MIN_SCAN_INTERVAL_MIN, mode=NumberSelectorMode.BOX
min=MIN_SCAN_INTERVAL_MIN, step=0.5, mode=NumberSelectorMode.BOX
)
),
vol.Required(
Expand Down
2 changes: 1 addition & 1 deletion custom_components/illuminance/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

DOMAIN = "illuminance"
DEFAULT_NAME = "Illuminance"
MIN_SCAN_INTERVAL_MIN = 5
MIN_SCAN_INTERVAL_MIN = 0.5
MIN_SCAN_INTERVAL = timedelta(minutes=MIN_SCAN_INTERVAL_MIN)
DEFAULT_SCAN_INTERVAL_MIN = 5
DEFAULT_SCAN_INTERVAL = timedelta(minutes=DEFAULT_SCAN_INTERVAL_MIN)
Expand Down

0 comments on commit ef4a333

Please sign in to comment.