forked from midea-lan/midea-local
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(cloud)!: rename MSmartHome (midea-lan#306)
Closes midea-lan#286
- Loading branch information
1 parent
dc75a99
commit 20c796e
Showing
4 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
MeijuCloud, | ||
MideaAirCloud, | ||
MideaCloud, | ||
MSmartHomeCloud, | ||
SmartHomeCloud, | ||
get_default_cloud, | ||
get_midea_cloud, | ||
get_preset_account_cloud, | ||
|
@@ -42,8 +42,8 @@ def test_get_midea_cloud(self) -> None: | |
session = AsyncMock() | ||
assert isinstance(get_midea_cloud("美的美居", session, "", ""), MeijuCloud) | ||
assert isinstance( | ||
get_midea_cloud("MSmartHome", session, "", ""), | ||
MSmartHomeCloud, | ||
get_midea_cloud("SmartHome", session, "", ""), | ||
SmartHomeCloud, | ||
) | ||
assert isinstance(get_midea_cloud("Midea Air", session, "", ""), MideaAirCloud) | ||
assert isinstance( | ||
|
@@ -60,7 +60,7 @@ def test_get_midea_cloud(self) -> None: | |
async def test_get_default_cloud(self) -> None: | ||
"""Test get default cloud name.""" | ||
default_cloud = get_default_cloud() | ||
assert default_cloud == "MSmartHome" | ||
assert default_cloud == "SmartHome" | ||
|
||
async def test_get_cloud_servers(self) -> None: | ||
"""Test get cloud servers.""" | ||
|
@@ -72,7 +72,7 @@ async def test_get_preset_account_cloud(self) -> None: | |
credentials = get_preset_account_cloud() | ||
assert credentials["username"] == "[email protected]" | ||
assert credentials["password"] == "a0d6e30c94b15" | ||
assert credentials["cloud_name"] == "MSmartHome" | ||
assert credentials["cloud_name"] == "SmartHome" | ||
|
||
async def test_midea_cloud_unimplemented(self) -> None: | ||
"""Test unimplemented MideaCloud methods.""" | ||
|
@@ -380,7 +380,7 @@ async def test_msmartcloud_login_success(self) -> None: | |
) | ||
session.request = AsyncMock(return_value=response) | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|
@@ -397,7 +397,7 @@ async def test_msmartcloud_login_invalid_user(self) -> None: | |
) | ||
session.request = AsyncMock(return_value=response) | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|
@@ -409,7 +409,7 @@ async def test_msmartcloud_list_home(self) -> None: | |
"""Test MSmartCloud list_home.""" | ||
session = Mock() | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|
@@ -434,7 +434,7 @@ async def test_msmartcloud_list_appliances(self) -> None: | |
) | ||
session.request = AsyncMock(return_value=response) | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|
@@ -485,7 +485,7 @@ async def test_msmartcloud_get_device_info(self) -> None: | |
) | ||
session.request = AsyncMock(return_value=response) | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|
@@ -525,7 +525,7 @@ async def test_msmartcloud_download_lua(self) -> None: | |
res.text = AsyncMock(return_value="4ABE0FE395F3AD3B6BC4D223F1ADFA7C") | ||
session.get = AsyncMock(return_value=res) | ||
cloud = get_midea_cloud( | ||
"MSmartHome", | ||
"SmartHome", | ||
session=session, | ||
account="account", | ||
password="password", | ||
|