Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #96 from DewGew/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
DewGew authored Jan 16, 2020
2 parents 9363b3d + 783caa1 commit 766eb31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 0 additions & 6 deletions default_config
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ Domoticz:
username: 'username'
password: 'password'
switchProtectionPass: '1234' #Set this to false if ask for pin function is not needed

# Google Assistant Settings:
ClientID: 'ADD_YOUR_CLIENT_ID_HERE'
ClientSecret: 'ADD_YOUR_CLIENT_SECRET_HERE'
Homegraph_API_Key: 'ADD_YOUR HOMEGRAPH_API_KEY_HERE'
# NOTE: Homegraph_API_Key is not need if you are using Service account (smart-home-key.json)

# Report low battry
Low_battery_limit: 9
Expand Down
5 changes: 5 additions & 0 deletions helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ def saveFile(filename, content):
pip.main(['install', 'pyngrok'])
from pyngrok import ngrok

if 'ClientID' not in configuration:
configuration['ClientID'] = 'sampleClientId'
if 'ClientSecret' not in configuration:
configuration['ClientSecret'] = 'sampleClientSecret'

Auth = {
'clients': {
configuration['ClientID']: {
Expand Down

0 comments on commit 766eb31

Please sign in to comment.