mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00: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,
|
STATE_ON,
|
||||||
)
|
)
|
||||||
from homeassistant.core import callback, split_entity_id
|
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 .accessories import TYPES, HomeAccessory
|
||||||
from .const import (
|
from .const import (
|
||||||
@ -134,7 +134,7 @@ class Switch(HomeAccessory):
|
|||||||
self.async_call_service(self._domain, service, params)
|
self.async_call_service(self._domain, service, params)
|
||||||
|
|
||||||
if self.activate_only:
|
if self.activate_only:
|
||||||
call_later(self.hass, 1, self.reset_switch)
|
async_call_later(self.hass, 1, self.reset_switch)
|
||||||
|
|
||||||
@callback
|
@callback
|
||||||
def async_update_state(self, new_state):
|
def async_update_state(self, new_state):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user