Skip to content

Added Python 3 compatibility#7

Closed
balloob wants to merge 31 commits into
FiloSottile:masterfrom
balloob:master
Closed

Added Python 3 compatibility#7
balloob wants to merge 31 commits into
FiloSottile:masterfrom
balloob:master

Conversation

@balloob
Copy link
Copy Markdown

@balloob balloob commented Jan 6, 2015

First, thanks for your great work! As we're working on adding Nest support to Home Assistant using your library, it would be great to have it on Pypi with Python 3 support.

Gist of changes:

  • Added from __future__ import print_function to nest.py and __init__.py.
  • Converted all calls from print to print()

jkoelker and others added 28 commits August 1, 2014 00:18
Use argparse for command line
Convert command line to console_scripts entry_point
PEP8 everything
Is now a proper python library for long running use
Command line is converted to use this
All writing is happening in either Device or Structure classes
DRY up Device/Structure a bit
Prevent username/password from being on the ps line
Allow the access_token (and other auth data like URLS) to be cached
inbetween calls. Makes calling from one shot scripts faster and more
better.
When using the cached data, make sure to call the auth_callback
Helps to ensure precision
Celsius units can't be set via config file because of hard-coded default after the config is read in. Move hard-coded default to the initialization of the dictionary, and update the dictionary based on the config file.
Improve handling of 'celsius' option via config
Convert all temperatures as displayed by show to the selected scale
(C/F)
Update install section of README to perform local fork based install as
pip will always install an older version
Apply temperature scales to show option
Added functionality to set the target humidity with either a specified
value, or by auto-selecting an appropriate humidity value based on the
Weather API current temperature. The following auto-selection rules are
used:
                     Outdoor Temperature (Degrees Fahrenheit)     Set
Target Humidity (%)
                         +40°
45%
                         +30°
40%
                         +20°                                        35%
                         +10°
30%
                           0°
25%
                         -10°
20%
                         -20°                                        15%
@balloob balloob closed this Jan 30, 2016
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.

5 participants