Skip to content

Commit

Permalink
Add login and updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Sep 1, 2023
1 parent 212dbab commit a5bae9d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.5.10rc1
0.4.6.0rc0
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,18 @@ Anyway, feel free to contribute via donations!
</p>

## Changelog
#### 0.4.6.0rc0
- Switched the login API to the new signIn path as old /Auth/login is being deprecated
- Improved CloudCreds to carry also API and MQTT endpoints
- Handled auto-retry in case of wrong endpoint being used for login
- Added mac-address attribute to BaseDevice class

<details>
<summary>Older</summary>
#### 0.4.5.9
- Improve meross_sniffer utility: add support to collect messages spoofing the hardware device on meross cloud.
- Allow string namespace value for execute_command within manager.

<details>
<summary>Older</summary>
#### 0.4.5.7
- Fix regression introduced with the latest refactor: missing properties on SubDevices.

Expand Down
2 changes: 2 additions & 0 deletions meross_iot/http_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ async def async_login(cls,
_LOGGER.error(f"Login API redirected to different region: {e.api_domain}. Login will be re-attempted")
return await MerossHttpClient.async_login(email=email, password=password, creds_env_var_name=creds_env_var_name, api_base_url=e.api_domain,http_proxy=http_proxy,ua_header=ua_header,app_type=app_type,app_version=app_version,log_identifier=log_identifier,country_code=country_code,agree_to_terms=agree_to_terms,mfa_code=mfa_code,stats_counter=stats_counter,*args, **kwargs)

_LOGGER.info(f"Login successful against {api_base_url}")

creds = MerossCloudCreds(
token=response_data["token"],
key=response_data["key"],
Expand Down

0 comments on commit a5bae9d

Please sign in to comment.