1 """The slack integration."""
3 from __future__
import annotations
5 from slack
import WebClient
11 from .const
import ATTR_URL, ATTR_USER_ID, DATA_CLIENT, DEFAULT_NAME, DOMAIN
15 """Representation of a Slack entity."""
17 _attr_attribution =
"Data provided by Slack"
18 _attr_has_entity_name =
True
22 data: dict[str, str | WebClient],
23 description: EntityDescription,
26 """Initialize a Slack entity."""
31 configuration_url=data[ATTR_URL],
32 entry_type=DeviceEntryType.SERVICE,
33 identifiers={(DOMAIN, entry.entry_id)},
34 manufacturer=DEFAULT_NAME,
None __init__(self, dict[str, str|WebClient] data, EntityDescription description, ConfigEntry entry)