Skip to content

Commit 0714410

Browse files
authored
Merge pull request #31 from rlippmann/1.1.0
1.1.0
2 parents 3848aca + 1af0139 commit 0714410

17 files changed

+1767
-1054
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ build
99
__pycache__
1010
.mypy_cache
1111
*.swp
12-
12+
.vscode/settings.json

Diff for: .pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ repos:
1414
hooks:
1515
- id: pycln
1616
args: [--config=pyproject.toml]
17-
#- repo: https://github.com/pycqa/isort
18-
# rev: 5.12.0
19-
# hooks:
20-
# - id: isort
21-
# files: "\\.(py)$"
22-
# args: [--settings-path=pyproject.toml]
17+
- repo: https://github.com/pycqa/isort
18+
rev: 5.12.0
19+
hooks:
20+
- id: isort
21+
files: "\\.(py)$"
22+
args: [--settings-path=pyproject.toml]
2323
- repo: https://github.com/dosisod/refurb
2424
rev: v1.15.0
2525
hooks:

Diff for: .vscode/launch.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"module": "example-client",
2020
"justMyCode": true,
2121
"args": [
22-
"/home/rlippmann/pulse.json"
22+
"~/pulse.json"
2323
]
2424
}
2525
]
26-
}
26+
}

Diff for: .vscode/settings.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"python.analysis.typeCheckingMode": "basic"
3-
}
2+
"python.analysis.typeCheckingMode": "basic",
3+
"python.terminal.activateEnvironment": true
4+
}

Diff for: CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 1.1 (2023-09-20)
2+
3+
* bug fixes
4+
* relogin support
5+
* device dataclasses
6+
7+
## 1.0 (2023-03-28)
8+
9+
* async support
10+
* background refresh
11+
* bug fixes
12+
113
## 0.1.0 (2019-12-16)
214

315
* added ability to override the ADT API host (example: Canada endpoint portal-ca.adtpulse.com)

Diff for: README.md

+12
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ for site in adt.sites:
7878
await site.async_arm_away(force=True)
7979
```
8080

81+
The pyadtpulse object runs background tasks and refreshes its data automatically.
82+
83+
Certain parameters can be set to control how often certain actions are run.
84+
85+
Namely:
86+
87+
```python
88+
adt.poll_interval = 0.75 # check for updates every 0.75 seconds
89+
adt.relogin_interval = 60 # relogin every 60 minutes
90+
adt.keepalive_interval = 10 # run keepalive (prevent logout) every 10 minutes
91+
```
92+
8193
See [example-client.py](example-client.py) for a working example.
8294

8395
## Browser Fingerprinting

Diff for: example-client.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,9 @@
66
"debug_locks": false,
77
"adtpulse_user": "me@myisp.com",
88
"adtpulse_password": "supersecretpassword",
9-
"adtpulse_fingerprint": "areallyreallyreallyreallyreallylongstring"
9+
"adtpulse_fingerprint": "areallyreallyreallyreallyreallylongstring",
10+
"service_host": "https://portal.adtpulse.com",
11+
"relogin_interval": 60,
12+
"keepalive_interval": 10,
13+
"poll_interval": 0.9
1014
}

0 commit comments

Comments
 (0)