1
mirror of https://github.com/home-assistant/core synced 2024-08-31 05:57:13 +02:00

Fix turning off scene in homekit (#47604)

This commit is contained in:
J. Nick Koston 2021-03-08 12:19:05 -10:00 committed by GitHub
parent efe415f225
commit 6af754a7d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):