"""Constants for the Notification Store integration.""" from __future__ import annotations from datetime import timedelta from homeassistant.const import Platform DOMAIN = "notification_store" NAME = "Notification Store" PLATFORMS: list[Platform] = [Platform.SENSOR] DEFAULT_NAME = "Dashboard Notifications" DEFAULT_SENSOR_NAME = "Items" DEFAULT_STORE_PATH = "notification_store/notifications.json" DEFAULT_SCAN_INTERVAL = 30 MIN_SCAN_INTERVAL = 5 CONF_STORE_PATH = "store_path" CONF_SCAN_INTERVAL = "scan_interval" CONF_NAME = "name" ATTR_NOTIFICATIONS = "notifications" ATTR_COUNT = "count" ATTR_TOTAL = "total" ATTR_LATEST = "latest" ATTR_LATEST_UNREAD = "latest_unread" EVENT_NOTIFICATION_ADDED = "notification_store_notification_added" EVENT_NOTIFICATION_READ = "notification_store_notification_read" EVENT_NOTIFICATIONS_CLEARED = "notification_store_notifications_cleared" SERVICE_ADD_NOTIFICATION = "add_notification" SERVICE_MARK_ALL_READ = "mark_all_read" SERVICE_MARK_ONE_READ = "mark_one_read" SERVICE_MARK_INDEX_READ = "mark_index_read" SERVICE_CLEAR_READ = "clear_read" SERVICE_CLEAR_ALL = "clear_all" SERVICE_RELOAD = "reload" FIELD_TITLE = "title" FIELD_MESSAGE = "message" FIELD_LEVEL = "level" FIELD_TAG = "tag" FIELD_SOURCE = "source" FIELD_ICON = "icon" FIELD_NOTIFICATION_ID = "notification_id" FIELD_INDEX = "index" FIELD_ENTRY_ID = "entry_id" LEVEL_INFO = "info" LEVEL_SUCCESS = "success" LEVEL_WARNING = "warning" LEVEL_CRITICAL = "critical" LEVELS = [LEVEL_INFO, LEVEL_SUCCESS, LEVEL_WARNING, LEVEL_CRITICAL] DEFAULT_UPDATE_INTERVAL = timedelta(seconds=DEFAULT_SCAN_INTERVAL)