core/homeassistant/components/nest/binary_sensor.py

16 lines
512 B
Python
Raw Normal View History

"""Support for Nest binary sensors that dispatches between API versions."""
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
2016-01-14 17:48:24 +00:00
from .const import DATA_SDM
from .legacy.binary_sensor import async_setup_legacy_entry
async def async_setup_entry(
hass: HomeAssistant, entry: ConfigEntry, async_add_entities
) -> None:
"""Set up the binary sensors."""
assert DATA_SDM not in entry.data
await async_setup_legacy_entry(hass, entry, async_add_entities)