1 """Support for INSTEON dimmers via PowerLinc Modem."""
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 switches from a config entry."""
25 def async_add_insteon_switch_entities(discovery_info=None):
26 """Add the Insteon entities for the platform."""
35 signal = f
"{SIGNAL_ADD_ENTITIES}_{Platform.SWITCH}"
46 """A Class for an Insteon switch entity."""
50 """Return the boolean response if the node is on."""
58 """Turn switch off."""
None async_turn_on(self, **Any kwargs)
None async_turn_off(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)