From b8b8e44454394d661ffb2c8f4a29ef2f0e9c3bfd Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 10 Mar 2024 17:23:02 -1000 Subject: [PATCH] Migrate duckdns to use async_run_hass_job (#113012) The code would create a hassjob and than run the wrapped function with async_run_job so it had to work out the job type twice --- homeassistant/components/duckdns/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/duckdns/__init__.py b/homeassistant/components/duckdns/__init__.py index 73dd5960631..557178de571 100644 --- a/homeassistant/components/duckdns/__init__.py +++ b/homeassistant/components/duckdns/__init__.py @@ -142,7 +142,7 @@ def async_track_time_interval_backoff( ) interval_listener_job = HassJob(interval_listener, cancel_on_shutdown=True) - hass.async_run_job(interval_listener, dt_util.utcnow()) + hass.async_run_hass_job(interval_listener_job, dt_util.utcnow()) def remove_listener() -> None: """Remove interval listener."""