mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 01:11:51 -04:00
39 lines
992 B
Python
39 lines
992 B
Python
"""Steam constants."""
|
|
|
|
from typing import Final
|
|
|
|
CONF_ACCOUNT = "account"
|
|
CONF_ACCOUNTS = "accounts"
|
|
|
|
DATA_KEY_COORDINATOR = "coordinator"
|
|
DOMAIN: Final = "steam_online"
|
|
|
|
|
|
PLACEHOLDERS = {
|
|
"api_key_url": "https://steamcommunity.com/dev/apikey",
|
|
"account_id_url": "https://store.steampowered.com/account/",
|
|
}
|
|
|
|
STATE_OFFLINE = "offline"
|
|
STATE_ONLINE = "online"
|
|
STATE_BUSY = "busy"
|
|
STATE_AWAY = "away"
|
|
STATE_SNOOZE = "snooze"
|
|
STATE_LOOKING_TO_TRADE = "looking_to_trade"
|
|
STATE_LOOKING_TO_PLAY = "looking_to_play"
|
|
STEAM_STATUSES = {
|
|
0: STATE_OFFLINE,
|
|
1: STATE_ONLINE,
|
|
2: STATE_BUSY,
|
|
3: STATE_AWAY,
|
|
4: STATE_SNOOZE,
|
|
5: STATE_LOOKING_TO_TRADE,
|
|
6: STATE_LOOKING_TO_PLAY,
|
|
}
|
|
STEAM_API_URL = "https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/"
|
|
STEAM_HEADER_IMAGE_FILE = "header.jpg"
|
|
STEAM_MAIN_IMAGE_FILE = "capsule_616x353.jpg"
|
|
STEAM_ICON_URL = "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/apps/"
|
|
|
|
SUBENTRY_TYPE_FRIEND = "friend"
|