core/homeassistant
Robbie Trencheny d229cb46b1 Google travel time improvements (#2047)
* Update google_travel_time.py

* Update google_travel_time.py

* pylint: disable=too-many-instance-attributes

* Add the mode to the title of the sensor

* Expose the travel mode on the sensor attributes

* Big improvements to the Google Travel Time sensor. Allow passing any options that Google supports in the options dict of your configuration. Deprecate travel_mode. Change name format to show the mode

* fu farcy

* Dynamically convert departure and arrival times

* Add a warning if user provides both departure and arrival times

* Add deprecation warning for travel_mode outside options and other minor fixes

* Use a copy of options dict to not overwrite the departure/arrival times constantly.

* Remove default travel_mode, but set default options.mode to driving

* Google doesnt let us query time in the past, so if the date we generate from a time string is in the past, add 1 day

* spacing fix

* Add config validation for all possible parameters

* flake8 and pylint fixes
2016-05-12 22:37:08 -07:00
..
components Google travel time improvements (#2047) 2016-05-12 22:37:08 -07:00
helpers Merge pull request #2027 from robbiet480/relative-time-filter 2016-05-11 22:50:56 -07:00
startup Fix packaging issues 2015-10-10 10:33:09 -07:00
util Remove humanize and use a relative time thing that @balloob found on Github 2016-05-10 00:04:53 -07:00
__init__.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
__main__.py Change local library path from {config_dir}/lib to {config_dir}/deps. (#1799) 2016-04-11 20:07:50 -07:00
bootstrap.py Improve config validation error message 2016-05-07 22:31:22 -07:00
config.py Correct celcius to celsius (#1860) 2016-04-19 20:30:44 -07:00
const.py Version bump to 0.20.0.dev0 2016-05-07 12:55:41 -07:00
core.py Correct celcius to celsius (#1860) 2016-04-19 20:30:44 -07:00
exceptions.py Fix PEP257 issues 2016-03-08 00:06:04 +01:00
loader.py Add automation config validation 2016-04-04 12:18:58 -07:00
remote.py Use standardised datetime format 2016-04-16 01:46:50 -07:00