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:
parent
efe415f225
commit
6af754a7d3
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user