* Add YouTube stub * Add YouTube stub * Add YouTube stub * Add YouTube stub * Add Youtube stub * Add Youtube stub * Add tests * Add tests * Add tests * Clean up * Add test for options flow * Fix feedback * Fix feedback * Remove obsolete request * Catch exceptions * Parallelize latest video calls * Apply suggestions from code review Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com> * Add youtube to google brands * Fix feedback * Fix feedback * Fix test * Fix test * Add unit test for http error * Update homeassistant/components/youtube/coordinator.py Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com> * Fix black * Fix feedback * Fix feedback * Fix tests --------- Co-authored-by: Robert Hillis <tkdrob4390@yahoo.com>
22 lines
570 B
Python
22 lines
570 B
Python
"""Constants for YouTube integration."""
|
|
import logging
|
|
|
|
DEFAULT_ACCESS = ["https://www.googleapis.com/auth/youtube.readonly"]
|
|
DOMAIN = "youtube"
|
|
MANUFACTURER = "Google, Inc."
|
|
|
|
CONF_CHANNELS = "channels"
|
|
CONF_ID = "id"
|
|
CONF_UPLOAD_PLAYLIST = "upload_playlist_id"
|
|
COORDINATOR = "coordinator"
|
|
AUTH = "auth"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
ATTR_TITLE = "title"
|
|
ATTR_LATEST_VIDEO = "latest_video"
|
|
ATTR_SUBSCRIBER_COUNT = "subscriber_count"
|
|
ATTR_DESCRIPTION = "description"
|
|
ATTR_THUMBNAIL = "thumbnail"
|
|
ATTR_VIDEO_ID = "video_id"
|
|
ATTR_PUBLISHED_AT = "published_at"
|