Skip to content

Commit

Permalink
Update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Feb 14, 2020
1 parent 4feea9a commit 758ac9b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.2.11 - 2020-02-14

### Added

- Support login with phone number

## 0.2.10 - 2020-02-13

### Fixed
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ sonoff:
password: mypassword
```
or
```yaml
sonoff:
username: +910123456789 # important to use country code
password: mypassword
```
Advanced config:
```yaml
Expand Down
2 changes: 1 addition & 1 deletion custom_components/sonoff/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def load_devices(username: str, password: str):

params = _params(email=username, password=password) \
if '@' in username else \
_params(phoneNumber=f"{username}", password=password)
_params(phoneNumber=username, password=password)

hex_dig = hmac.new(b'6Nz4n0xA8s8qdxQf2GqurZj2Fs55FUvM',
json.dumps(params).encode(),
Expand Down

0 comments on commit 758ac9b

Please sign in to comment.