Skip to content

Commit e3fae0b

Browse files
committed
Fixes
1 parent 8d8bee2 commit e3fae0b

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

pyoverkiz/const.py

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,91 @@
11
from __future__ import annotations
22

3+
from pyoverkiz.servers.atlantic_cozytouch import AtlanticCozytouch
4+
from pyoverkiz.servers.default import DefaultServer
5+
from pyoverkiz.servers.nexity import NexityServer
36
from pyoverkiz.servers.overkiz_server import OverkizServer
7+
from pyoverkiz.servers.somfy import SomfyServer
48

59
SUPPORTED_SERVERS: dict[str, OverkizServer] = {
6-
"atlantic_cozytouch": OverkizServer(
10+
"atlantic_cozytouch": AtlanticCozytouch(
711
name="Atlantic Cozytouch",
812
endpoint="https://ha110-1.overkiz.com/enduser-mobile-web/enduserAPI/",
913
manufacturer="Atlantic",
1014
configuration_url=None,
1115
),
12-
"brandt": OverkizServer(
16+
"brandt": DefaultServer(
1317
name="Brandt Smart Control",
1418
endpoint="https://ha3-1.overkiz.com/enduser-mobile-web/enduserAPI/",
1519
manufacturer="Brandt",
1620
configuration_url=None,
1721
),
18-
"flexom": OverkizServer(
22+
"flexom": DefaultServer(
1923
name="Flexom",
2024
endpoint="https://ha108-1.overkiz.com/enduser-mobile-web/enduserAPI/",
2125
manufacturer="Bouygues",
2226
configuration_url=None,
2327
),
24-
"hexaom_hexaconnect": OverkizServer(
28+
"hexaom_hexaconnect": DefaultServer(
2529
name="Hexaom HexaConnect",
2630
endpoint="https://ha5-1.overkiz.com/enduser-mobile-web/enduserAPI/",
2731
manufacturer="Hexaom",
2832
configuration_url=None,
2933
),
30-
"hi_kumo_asia": OverkizServer(
34+
"hi_kumo_asia": DefaultServer(
3135
name="Hitachi Hi Kumo (Asia)",
3236
endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/",
3337
manufacturer="Hitachi",
3438
configuration_url=None,
3539
),
36-
"hi_kumo_europe": OverkizServer(
40+
"hi_kumo_europe": DefaultServer(
3741
name="Hitachi Hi Kumo (Europe)",
3842
endpoint="https://ha117-1.overkiz.com/enduser-mobile-web/enduserAPI/",
3943
manufacturer="Hitachi",
4044
configuration_url=None,
4145
),
42-
"hi_kumo_oceania": OverkizServer(
46+
"hi_kumo_oceania": DefaultServer(
4347
name="Hitachi Hi Kumo (Oceania)",
4448
endpoint="https://ha203-1.overkiz.com/enduser-mobile-web/enduserAPI/",
4549
manufacturer="Hitachi",
4650
configuration_url=None,
4751
),
48-
"nexity": OverkizServer(
52+
"nexity": NexityServer(
4953
name="Nexity Eugénie",
5054
endpoint="https://ha106-1.overkiz.com/enduser-mobile-web/enduserAPI/",
5155
manufacturer="Nexity",
5256
configuration_url=None,
5357
),
54-
"rexel": OverkizServer(
58+
"rexel": DefaultServer(
5559
name="Rexel Energeasy Connect",
5660
endpoint="https://ha112-1.overkiz.com/enduser-mobile-web/enduserAPI/",
5761
manufacturer="Rexel",
5862
configuration_url="https://utilisateur.energeasyconnect.com/user/#/zone/equipements",
5963
),
60-
"simu_livein2": OverkizServer( # alias of https://tahomalink.com
64+
"simu_livein2": DefaultServer( # alias of https://tahomalink.com
6165
name="SIMU (LiveIn2)",
6266
endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/",
6367
manufacturer="Somfy",
6468
configuration_url=None,
6569
),
66-
"somfy_europe": OverkizServer( # alias of https://tahomalink.com
70+
"somfy_europe": SomfyServer( # alias of https://tahomalink.com
6771
name="Somfy (Europe)",
6872
endpoint="https://ha101-1.overkiz.com/enduser-mobile-web/enduserAPI/",
6973
manufacturer="Somfy",
7074
configuration_url="https://www.tahomalink.com",
7175
),
72-
"somfy_america": OverkizServer(
76+
"somfy_america": DefaultServer(
7377
name="Somfy (North America)",
7478
endpoint="https://ha401-1.overkiz.com/enduser-mobile-web/enduserAPI/",
7579
manufacturer="Somfy",
7680
configuration_url=None,
7781
),
78-
"somfy_oceania": OverkizServer(
82+
"somfy_oceania": DefaultServer(
7983
name="Somfy (Oceania)",
8084
endpoint="https://ha201-1.overkiz.com/enduser-mobile-web/enduserAPI/",
8185
manufacturer="Somfy",
8286
configuration_url=None,
8387
),
84-
"ubiwizz": OverkizServer(
88+
"ubiwizz": DefaultServer(
8589
name="Ubiwizz",
8690
endpoint="https://ha129-1.overkiz.com/enduser-mobile-web/enduserAPI/",
8791
manufacturer="Decelect",

pyoverkiz/servers/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pyoverkiz.servers.overkiz_server import OverkizServer
22

33

4-
class NexityServer(OverkizServer):
4+
class DefaultServer(OverkizServer):
55
async def login(self, username: str, password: str) -> bool:
66
"""
77
Authenticate and create an API session allowing access to the other operations.

0 commit comments

Comments
 (0)