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

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAnnekov committed Oct 6, 2020
1 parent cd9baa8 commit 31d0fee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@

.idea/inspectionProfiles/profiles_settings.xml
.idea/inspectionProfiles/Project_Default.xml
.idea/misc.xml
.idea/modules.xml
.idea/tuyaha.iml
.idea/vcs.xml
.idea/workspace.xml
.idea
8 changes: 4 additions & 4 deletions tuyaha/tuyaapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
# Tuya API do not allow call to discovery command below specific limits
# Use discovery_interval property to set correct value based on API discovery limits
# Next 2 parameter define the default and minimum allowed value for the property
MIN_DISCOVERY_INTERVAL = 10.0 # 10 seconds
DEF_DISCOVERY_INTERVAL = 60.0 # 60 seconds
MIN_DISCOVERY_INTERVAL = 10.0
DEF_DISCOVERY_INTERVAL = 60.0

# Tuya API do not allow call to query command below specific limits
# Use query_interval property to set correct value based on API query limits
# Next 2 parameter define the default and minimum allowed value for the property
MIN_QUERY_INTERVAL = 10.0 # 10 seconds
DEF_QUERY_INTERVAL = 30.0 # 30 seconds
MIN_QUERY_INTERVAL = 10.0
DEF_QUERY_INTERVAL = 30.0

REFRESHTIME = 60 * 60 * 12

Expand Down

0 comments on commit 31d0fee

Please sign in to comment.