Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants for PlayStation 4."""
2 
3 ATTR_MEDIA_IMAGE_URL = "media_image_url"
4 CONFIG_ENTRY_VERSION = 3
5 DEFAULT_NAME = "PlayStation 4"
6 DEFAULT_REGION = "United States"
7 DEFAULT_ALIAS = "Home-Assistant"
8 DOMAIN = "ps4"
9 GAMES_FILE = ".ps4-games.{}.json"
10 PS4_DATA = "ps4_data"
11 
12 COMMANDS = ("up", "down", "right", "left", "enter", "back", "option", "ps", "ps_hold")
13 
14 # Deprecated used for logger/backwards compatibility from 0.89
15 REGIONS = ["R1", "R2", "R3", "R4", "R5"]
16 
17 COUNTRYCODE_NAMES = {
18  "AE": "United Arab Emirates",
19  "AR": "Argentina",
20  "AT": "Austria",
21  "AU": "Australia",
22  "BE": "Belgium",
23  "BG": "Bulgaria",
24  "BH": "Bahrain",
25  "BR": "Brazil",
26  "CA": "Canada",
27  "CH": "Switzerland",
28  "CL": "Chile",
29  "CO": "Columbia",
30  "CR": "Costa Rica",
31  "CY": "Cyprus",
32  "CZ": "Czech Republic",
33  "DE": "Germany",
34  "DK": "Denmark",
35  "EC": "Ecuador",
36  "ES": "Spain",
37  "FI": "Finland",
38  "FR": "France",
39  "GB": "United Kingdom",
40  "GR": "Greece",
41  "GT": "Guatemala",
42  "HK": "Hong Kong",
43  "HN": "Honduras",
44  "HR": "Croatia",
45  "HU": "Hungary",
46  "ID": "Indonesia",
47  "IE": "Ireland",
48  "IL": "Israel",
49  "IN": "India",
50  "IS": "Iceland",
51  "IT": "Italy",
52  "JP": "Japan",
53  "KW": "Kuwait",
54  "LB": "Lebanon",
55  "LU": "Luxembourg",
56  "MT": "Malta",
57  "MX": "Mexico",
58  # spelling error compatibility with pyps4_2ndscreen.media_art.COUNTRIES
59  "MY": "Maylasia",
60  "NI": "Nicaragua",
61  "NL": "Nederland",
62  "NO": "Norway",
63  "NZ": "New Zealand",
64  "OM": "Oman",
65  "PA": "Panama",
66  "PE": "Peru",
67  "PL": "Poland",
68  "PT": "Portugal",
69  "QA": "Qatar",
70  "RO": "Romania",
71  "RU": "Russia",
72  "SA": "Saudi Arabia",
73  "SE": "Sweden",
74  "SG": "Singapore",
75  "SI": "Slovenia",
76  "SK": "Slovakia",
77  "SV": "El Salvador",
78  "TH": "Thailand",
79  "TR": "Turkey",
80  "TW": "Taiwan",
81  "UA": "Ukraine",
82  "US": "United States",
83  "ZA": "South Africa",
84 }