Add nest device triggers for camera and doorbell events (#43548)
This commit is contained in:
parent
2cbb93be43
commit
945a0a9f7e
12 changed files with 520 additions and 36 deletions
|
@ -19,7 +19,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
|||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.typing import HomeAssistantType
|
||||
|
||||
from .const import DOMAIN, SIGNAL_NEST_UPDATE
|
||||
from .const import DATA_SUBSCRIBER, DOMAIN, SIGNAL_NEST_UPDATE
|
||||
from .device_info import DeviceInfo
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -38,7 +38,7 @@ async def async_setup_sdm_entry(
|
|||
) -> None:
|
||||
"""Set up the sensors."""
|
||||
|
||||
subscriber = hass.data[DOMAIN][entry.entry_id]
|
||||
subscriber = hass.data[DOMAIN][DATA_SUBSCRIBER]
|
||||
try:
|
||||
device_manager = await subscriber.async_get_device_manager()
|
||||
except GoogleNestException as err:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue