prefer total_seconds over seconds (#49505)
This commit is contained in:
parent
020d456889
commit
a90d3a051f
31 changed files with 65 additions and 46 deletions
|
@ -50,7 +50,7 @@ class SpeedTestFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
return self.async_abort(reason="wrong_server_id")
|
||||
|
||||
import_config[CONF_SCAN_INTERVAL] = int(
|
||||
import_config[CONF_SCAN_INTERVAL].seconds / 60
|
||||
import_config[CONF_SCAN_INTERVAL].total_seconds() / 60
|
||||
)
|
||||
import_config.pop(CONF_MONITORED_CONDITIONS)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue