From 6af754a7d3c2e69b6fc3cf4a78cc8fb4b8a5bf1e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 8 Mar 2021 12:19:05 -1000 Subject: [PATCH] Fix turning off scene in homekit (#47604) --- homeassistant/components/homekit/type_switches.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homekit/type_switches.py b/homeassistant/components/homekit/type_switches.py index 1ce6c364896..8ea19897420 100644 --- a/homeassistant/components/homekit/type_switches.py +++ b/homeassistant/components/homekit/type_switches.py @@ -27,7 +27,7 @@ from homeassistant.const import ( STATE_ON, ) from homeassistant.core import callback, split_entity_id -from homeassistant.helpers.event import call_later +from homeassistant.helpers.event import async_call_later from .accessories import TYPES, HomeAccessory from .const import ( @@ -134,7 +134,7 @@ class Switch(HomeAccessory): self.async_call_service(self._domain, service, params) if self.activate_only: - call_later(self.hass, 1, self.reset_switch) + async_call_later(self.hass, 1, self.reset_switch) @callback def async_update_state(self, new_state):