mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 18:11:41 +02:00
Fix turning off scene in homekit (#47604)
This commit is contained in:
committed by
Paulus Schoutsen
parent
a51ad137a1
commit
58573dc74d
@@ -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):
|
||||
|
Reference in New Issue
Block a user