1 """Base entity for Streamlabs integration."""
7 from .coordinator
import StreamlabsCoordinator, StreamlabsData
11 """Defines a base Streamlabs entity."""
13 _attr_has_entity_name =
True
17 coordinator: StreamlabsCoordinator,
21 """Initialize the Streamlabs entity."""
26 identifiers={(HOMEASSISTANT_DOMAIN, location_id)},
32 """Returns the data object."""
33 return self.coordinator.data[self.
_location_id_location_id]
StreamlabsData location_data(self)
None __init__(self, StreamlabsCoordinator coordinator, str location_id, str key)