prefer total_seconds over seconds (#49505)
This commit is contained in:
parent
020d456889
commit
a90d3a051f
31 changed files with 65 additions and 46 deletions
|
@ -69,7 +69,9 @@ class NZBGetConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
) -> dict[str, Any]:
|
||||
"""Handle a flow initiated by configuration file."""
|
||||
if CONF_SCAN_INTERVAL in user_input:
|
||||
user_input[CONF_SCAN_INTERVAL] = user_input[CONF_SCAN_INTERVAL].seconds
|
||||
user_input[CONF_SCAN_INTERVAL] = user_input[
|
||||
CONF_SCAN_INTERVAL
|
||||
].total_seconds()
|
||||
|
||||
return await self.async_step_user(user_input)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue