1 """Support for scenes through the SmartThings cloud API."""
10 from .const
import DATA_BROKERS, DOMAIN
15 config_entry: ConfigEntry,
16 async_add_entities: AddEntitiesCallback,
18 """Add switches for a config entry."""
19 broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id]
24 """Define a SmartThings scene."""
27 """Init the scene class."""
38 """Get attributes about the state."""
40 "icon": self.
_scene_scene.icon,
41 "color": self.
_scene_scene.color,
42 "location_id": self.
_scene_scene.location_id,
None async_activate(self, **Any kwargs)
def extra_state_attributes(self)
def __init__(self, scene)
def execute(hass, filename, source, data=None, return_response=False)
None async_setup_entry(HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)