Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Add region parameter to init method (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 authored Jun 7, 2021
1 parent ae88938 commit e677fe5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuyaha/tuyaapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ def query_interval(self, val):
)
self._query_interval = val

def init(self, username, password, countryCode, bizType=""):
def init(self, username, password, countryCode, bizType="", region=DEFAULTREGION):
SESSION.username = username
SESSION.password = password
SESSION.countryCode = countryCode
SESSION.bizType = bizType
SESSION.region = region

self._requestSession = requests.Session()

Expand Down

0 comments on commit e677fe5

Please sign in to comment.