|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | 5 | from pyoverkiz.enums import Server |
6 | | -from pyoverkiz.models import OverkizServer |
| 6 | +from pyoverkiz.models import ServerConfig |
7 | 7 |
|
8 | 8 | COZYTOUCH_ATLANTIC_API = "https://apis.groupe-atlantic.com" |
9 | 9 | COZYTOUCH_CLIENT_ID = ( |
|
39 | 39 | Server.SOMFY_AMERICA, |
40 | 40 | ] |
41 | 41 |
|
42 | | -SUPPORTED_SERVERS: dict[str, OverkizServer] = { |
43 | | - Server.ATLANTIC_COZYTOUCH: OverkizServer( |
| 42 | +SUPPORTED_SERVERS: dict[str, ServerConfig] = { |
| 43 | + Server.ATLANTIC_COZYTOUCH: ServerConfig( |
44 | 44 | name="Atlantic Cozytouch", |
45 | 45 | endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
46 | 46 | manufacturer="Atlantic", |
47 | 47 | configuration_url=None, |
48 | 48 | ), |
49 | | - Server.BRANDT: OverkizServer( |
| 49 | + Server.BRANDT: ServerConfig( |
50 | 50 | name="Brandt Smart Control", |
51 | 51 | endpoint="https://ha3-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
52 | 52 | manufacturer="Brandt", |
53 | 53 | configuration_url=None, |
54 | 54 | ), |
55 | | - Server.FLEXOM: OverkizServer( |
| 55 | + Server.FLEXOM: ServerConfig( |
56 | 56 | name="Flexom", |
57 | 57 | endpoint="https://ha108-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
58 | 58 | manufacturer="Bouygues", |
59 | 59 | configuration_url=None, |
60 | 60 | ), |
61 | | - Server.HEXAOM_HEXACONNECT: OverkizServer( |
| 61 | + Server.HEXAOM_HEXACONNECT: ServerConfig( |
62 | 62 | name="Hexaom HexaConnect", |
63 | 63 | endpoint="https://ha5-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
64 | 64 | manufacturer="Hexaom", |
65 | 65 | configuration_url=None, |
66 | 66 | ), |
67 | | - Server.HI_KUMO_ASIA: OverkizServer( |
| 67 | + Server.HI_KUMO_ASIA: ServerConfig( |
68 | 68 | name="Hitachi Hi Kumo (Asia)", |
69 | 69 | endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
70 | 70 | manufacturer="Hitachi", |
71 | 71 | configuration_url=None, |
72 | 72 | ), |
73 | | - Server.HI_KUMO_EUROPE: OverkizServer( |
| 73 | + Server.HI_KUMO_EUROPE: ServerConfig( |
74 | 74 | name="Hitachi Hi Kumo (Europe)", |
75 | 75 | endpoint="https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
76 | 76 | manufacturer="Hitachi", |
77 | 77 | configuration_url=None, |
78 | 78 | ), |
79 | | - Server.HI_KUMO_OCEANIA: OverkizServer( |
| 79 | + Server.HI_KUMO_OCEANIA: ServerConfig( |
80 | 80 | name="Hitachi Hi Kumo (Oceania)", |
81 | 81 | endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
82 | 82 | manufacturer="Hitachi", |
83 | 83 | configuration_url=None, |
84 | 84 | ), |
85 | | - Server.NEXITY: OverkizServer( |
| 85 | + Server.NEXITY: ServerConfig( |
86 | 86 | name="Nexity Eugénie", |
87 | 87 | endpoint="https://ha106-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
88 | 88 | manufacturer="Nexity", |
89 | 89 | configuration_url=None, |
90 | 90 | ), |
91 | | - Server.REXEL: OverkizServer( |
| 91 | + Server.REXEL: ServerConfig( |
92 | 92 | name="Rexel Energeasy Connect", |
93 | 93 | endpoint=REXEL_BACKEND_API, |
94 | 94 | manufacturer="Rexel", |
95 | 95 | configuration_url="https://utilisateur.energeasyconnect.com/user/#/zone/equipements", |
96 | 96 | ), |
97 | | - Server.SAUTER_COZYTOUCH: OverkizServer( # duplicate of Atlantic Cozytouch |
| 97 | + Server.SAUTER_COZYTOUCH: ServerConfig( # duplicate of Atlantic Cozytouch |
98 | 98 | name="Sauter Cozytouch", |
99 | 99 | endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
100 | 100 | manufacturer="Sauter", |
101 | 101 | configuration_url=None, |
102 | 102 | ), |
103 | | - Server.SIMU_LIVEIN2: OverkizServer( # alias of https://tahomalink.com |
| 103 | + Server.SIMU_LIVEIN2: ServerConfig( # alias of https://tahomalink.com |
104 | 104 | name="SIMU (LiveIn2)", |
105 | 105 | endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
106 | 106 | manufacturer="Somfy", |
107 | 107 | configuration_url=None, |
108 | 108 | ), |
109 | | - Server.SOMFY_EUROPE: OverkizServer( # alias of https://tahomalink.com |
| 109 | + Server.SOMFY_EUROPE: ServerConfig( # alias of https://tahomalink.com |
110 | 110 | name="Somfy (Europe)", |
111 | 111 | endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
112 | 112 | manufacturer="Somfy", |
113 | 113 | configuration_url=None, |
114 | 114 | ), |
115 | | - Server.SOMFY_AMERICA: OverkizServer( |
| 115 | + Server.SOMFY_AMERICA: ServerConfig( |
116 | 116 | name="Somfy (North America)", |
117 | 117 | endpoint="https://ha401-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
118 | 118 | manufacturer="Somfy", |
119 | 119 | configuration_url=None, |
120 | 120 | ), |
121 | | - Server.SOMFY_OCEANIA: OverkizServer( |
| 121 | + Server.SOMFY_OCEANIA: ServerConfig( |
122 | 122 | name="Somfy (Oceania)", |
123 | 123 | endpoint="https://ha201-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
124 | 124 | manufacturer="Somfy", |
125 | 125 | configuration_url=None, |
126 | 126 | ), |
127 | | - Server.THERMOR_COZYTOUCH: OverkizServer( # duplicate of Atlantic Cozytouch |
| 127 | + Server.THERMOR_COZYTOUCH: ServerConfig( # duplicate of Atlantic Cozytouch |
128 | 128 | name="Thermor Cozytouch", |
129 | 129 | endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
130 | 130 | manufacturer="Thermor", |
131 | 131 | configuration_url=None, |
132 | 132 | ), |
133 | | - Server.UBIWIZZ: OverkizServer( |
| 133 | + Server.UBIWIZZ: ServerConfig( |
134 | 134 | name="Ubiwizz", |
135 | 135 | endpoint="https://ha129-1.overkiz.com/enduser-mobile-web/enduserAPI/", |
136 | 136 | manufacturer="Decelect", |
|
0 commit comments