Skip to content

Commit

Permalink
Fix local example adding missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed Jan 27, 2024
1 parent fa4f1fb commit 1b7b355
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/cover.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")
# Print credentials including device key, which is useful for some HA integrations like Meross LAN.
print(http_api_client.cloud_credentials.to_json())
await http_api_client.async_logout()
Expand Down
2 changes: 1 addition & 1 deletion examples/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/electricity.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/light.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/roller_shutter_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/toggle.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down
2 changes: 1 addition & 1 deletion examples/valve.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

async def main():
# Setup the HTTP client API from user-password
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD, api_base_url="https://iot.meross.com")

# Setup and start the device manager
manager = MerossManager(http_client=http_api_client)
Expand Down

0 comments on commit 1b7b355

Please sign in to comment.