mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-09-07 04:21:54 +01:00
Compare commits
4 Commits
untagged-9
...
2.0.2
Author | SHA1 | Date | |
---|---|---|---|
|
474fb1adc6 | ||
|
9fb3e12061 | ||
|
9de843188f | ||
|
12d2866676 |
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -9,9 +9,9 @@ jobs:
|
||||
- name: Pull source
|
||||
uses: actions/checkout@v1
|
||||
- name: Package up a release
|
||||
run: zip -r ../badnest.zip hacs.json info.md custom_components
|
||||
run: zip -r badnest.zip hacs.json info.md custom_components
|
||||
- uses: JasonEtco/upload-to-release@master
|
||||
with:
|
||||
args: ../badnest.zip
|
||||
args: badnest.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@@ -20,7 +20,6 @@ class NestAPI:
|
||||
self._login_google(issue_token, cookie, api_key)
|
||||
else:
|
||||
self._login_nest(email, password)
|
||||
self.update()
|
||||
|
||||
def _login_nest(self, email, password):
|
||||
r = self._session.post(
|
||||
@@ -56,9 +55,6 @@ class NestAPI:
|
||||
self._user_id = r.json()['claims']['subject']['nestId']['id']
|
||||
self._access_token = r.json()['jwt']
|
||||
|
||||
def update(self):
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class NestThermostatAPI(NestAPI):
|
||||
def __init__(self, email, password, issue_token, cookie, api_key):
|
||||
@@ -87,6 +83,7 @@ class NestThermostatAPI(NestAPI):
|
||||
self.target_temperature_high = None
|
||||
self.target_temperature_low = None
|
||||
self.current_humidity = None
|
||||
self.update()
|
||||
|
||||
def get_action(self):
|
||||
if self._hvac_ac_state:
|
||||
@@ -240,6 +237,7 @@ class NestCameraAPI(NestAPI):
|
||||
self.battery_voltage = None
|
||||
self.ac_voltge = None
|
||||
self.data_tier = None
|
||||
self.update()
|
||||
|
||||
def set_device(self, uuid):
|
||||
self._device_id = uuid
|
||||
|
Reference in New Issue
Block a user