diff --git a/homeassistant/components/configurator/__init__.py b/homeassistant/components/configurator/__init__.py index e49b6b25d6c..0579df90dc9 100644 --- a/homeassistant/components/configurator/__init__.py +++ b/homeassistant/components/configurator/__init__.py @@ -15,7 +15,12 @@ import functools as ft from typing import Any from homeassistant.const import ATTR_ENTITY_PICTURE, ATTR_FRIENDLY_NAME -from homeassistant.core import HomeAssistant, ServiceCall, callback as async_callback +from homeassistant.core import ( + HassJob, + HomeAssistant, + ServiceCall, + callback as async_callback, +) from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity import async_generate_entity_id from homeassistant.helpers.event import async_call_later @@ -245,7 +250,9 @@ class Configurator: # field validation goes here? if callback and ( - job := self.hass.async_add_job(callback, call.data.get(ATTR_FIELDS, {})) + job := self.hass.async_add_hass_job( + HassJob(callback), call.data.get(ATTR_FIELDS, {}) + ) ): await job