1 """Support for INSTEON locks."""
12 from .const
import SIGNAL_ADD_ENTITIES
13 from .entity
import InsteonEntity
14 from .utils
import async_add_insteon_devices, async_add_insteon_entities
19 config_entry: ConfigEntry,
20 async_add_entities: AddEntitiesCallback,
22 """Set up the Insteon locks from a config entry."""
25 def async_add_insteon_lock_entities(discovery_info=None):
26 """Add the Insteon entities for the platform."""
28 hass, Platform.LOCK, InsteonLockEntity, async_add_entities, discovery_info
31 signal = f
"{SIGNAL_ADD_ENTITIES}_{Platform.LOCK}"
42 """A Class for an Insteon lock entity."""
46 """Return the boolean response if the node is on."""
50 """Lock the device."""
54 """Unlock the device."""
None async_lock(self, **Any kwargs)
None async_unlock(self, **Any kwargs)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
None async_add_insteon_devices(HomeAssistant hass, Platform platform, type[InsteonEntity] entity_type, AddEntitiesCallback async_add_entities)
None async_add_insteon_entities(HomeAssistant hass, Platform platform, type[InsteonEntity] entity_type, AddEntitiesCallback async_add_entities, dict[str, Any] discovery_info)
Callable[[], None] async_dispatcher_connect(HomeAssistant hass, str signal, Callable[..., Any] target)