File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Changelog
4
4
5
5
A list of changes between each release
6
6
7
+ 0.16.3 (2020-08-02)
8
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
+
10
+ - Add user-agent to all headers
11
+
7
12
0.16.2 (2020-08-01)
8
13
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9
14
Original file line number Diff line number Diff line change 6
6
from urllib3 .util .retry import Retry
7
7
from blinkpy import api
8
8
from blinkpy .helpers import util
9
- from blinkpy .helpers .constants import BLINK_URL , LOGIN_ENDPOINT , TIMEOUT
9
+ from blinkpy .helpers .constants import (
10
+ BLINK_URL ,
11
+ DEFAULT_USER_AGENT ,
12
+ LOGIN_ENDPOINT ,
13
+ TIMEOUT ,
14
+ )
10
15
11
16
_LOGGER = logging .getLogger (__name__ )
12
17
@@ -53,7 +58,7 @@ def header(self):
53
58
"""Return authorization header."""
54
59
if self .token is None :
55
60
return None
56
- return {"TOKEN_AUTH" : self .token }
61
+ return {"TOKEN_AUTH" : self .token , "user-agent" : DEFAULT_USER_AGENT }
57
62
58
63
def create_session (self , opts = None ):
59
64
"""Create a session for blink communication."""
Original file line number Diff line number Diff line change 4
4
5
5
MAJOR_VERSION = 0
6
6
MINOR_VERSION = 16
7
- PATCH_VERSION = 2
7
+ PATCH_VERSION = 3
8
8
9
9
__version__ = f"{ MAJOR_VERSION } .{ MINOR_VERSION } .{ PATCH_VERSION } "
10
10
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ def test_response_bad_json(self):
128
128
def test_header (self ):
129
129
"""Test header data."""
130
130
self .auth .token = "bar"
131
- expected_header = {"TOKEN_AUTH" : "bar" }
131
+ expected_header = {"TOKEN_AUTH" : "bar" , "user-agent" : const . DEFAULT_USER_AGENT }
132
132
self .assertDictEqual (self .auth .header , expected_header )
133
133
134
134
def test_header_no_token (self ):
You can’t perform that action at this time.
0 commit comments