Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

656 nest support #702

Merged
merged 6 commits into from
Nov 17, 2023
Merged

656 nest support #702

merged 6 commits into from
Nov 17, 2023

Conversation

cjkrolak
Copy link
Owner

initial nest thermostat support, not yet functional

devices = self.thermostat_obj.get_devices()
print(f"DEBUG: devices = {devices}")
meta_data = devices[self.zone]
if parameter is None:

Check warning

Code scanning / Prospector (reported by Codacy)

Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)

Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)
print(f"Please go to {authorization_url} and authorize access")
return input('Enter the full callback URL: ')

def get_target_zone_id(self, zone=0):

Check warning

Code scanning / Prospector (reported by Codacy)

Unused argument 'zone' (unused-argument)

Unused argument 'zone' (unused-argument)
"""
if val is None:
raise AttributeError("environment value cannot be none")
if key is None:

Check warning

Code scanning / Prospector (reported by Codacy)

Unnecessary "elif" after "raise", remove the leading "el" from "elif" (no-else-raise)

Unnecessary "elif" after "raise", remove the leading "el" from "elif" (no-else-raise)
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pylint (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.


# get credentials from file
self.google_app_credential_file = ".//credentials.json"
self.access_token_cache_file = ".//token_cache.json"

Check warning

Code scanning / Bandit (reported by Codacy)

Possible hardcoded password: './/token_cache.json'

Possible hardcoded password: './/token_cache.json'
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pylintpython3 (reported by Codacy) found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@cjkrolak cjkrolak merged commit fe4de31 into develop Nov 17, 2023
@cjkrolak
Copy link
Owner Author

resolves #656

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant