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

Release 2.6.0 #166

Merged
merged 81 commits into from Dec 21, 2016
Merged

Release 2.6.0 #166

merged 81 commits into from Dec 21, 2016

Conversation

csparpa
Copy link
Owner

@csparpa csparpa commented Dec 21, 2016

No description provided.

csparpa and others added 30 commits March 18, 2016 01:43
* First attempt

* Guide

* Fix Dockerfile and docs
Hello !
I'm useing Homeassistant, and sometimes I got the following error:
```
Traceback (most recent call last):
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 98, in _setup_platform
    discovery_info)
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 70, in setup_platform
    dev.append(OpenWeatherMapSensor(data, variable, unit))
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 94, in __init__
    self.update()
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 114, in update
    self.owa_client.update()
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/util/__init__.py", line 289, in wrapper
    result = method(*args, **kwargs)
  File "/home/titilambert/gits/domo/homeassitant/env/lib/python3.4/site-packages/homeassistant/components/sensor/openweathermap.py", line 179, in update
    self.longitude)
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/owm25.py", line 432, in three_hours_forecast_at_coords
    forecast = self._parsers['forecast'].parse_JSON(json_data)
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/forecastparser.py", line 66, in parse_JSON
    for item in d['list']]
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/forecastparser.py", line 66, in <listcomp>
    for item in d['list']]
  File "/home/titilambert/gits/domo/homeassitant/config/deps/pyowm/webapi25/weather.py", line 462, in weather_from_dictionary
    wind = d['wind'].copy()
AttributeError: 'NoneType' object has no attribute 'copy'
```

This patch fixes this error
csparpa and others added 29 commits October 10, 2016 13:06
* COIndex entity and tests

* Change XML schema and fix tests

* Fix CO sample key: had to be "value" instead of "vmr"

* COIndexParser and test

* Typo

* HTTP Air Pollution data client and tests

* cut 'n' paste leftovers

* Refactoring: we're getting too verbose, man!

* More refactoring

* OWM method for polling CO and test

* Fix docs

* Fix mess about reception_time: now UVIndex entities have both a reference_time and a reception_time

* Same fix: reference_time and reception_time are now available (with proper semantic) on COIndex

* Add is_forecast method to COIndex

* fix test

* cleaner

* Ozone entity and OzoneParser

* Integation tests updated with air pollution airpoints check

* Add ozone_around_coords method to OWM25 and patched tests along

* Fix bug: it was failing due to missing location sting

* Better exception raising

* Improved some integration tests
* Create method for getting weather based on zip code and country code

* Create unit test for new  method

* Add integration test for weather_at_zipcode

* Added my name into CONTRIBUTORS.md

* Remove uneeded 'pass' at end of function
* Using now tox also for integration tests running

* New ignored

* First model: Location

* More models

* Rename and replace with full Django project

* Station model

* StationHistory model

* UVIndex model

* Forgot some methods

* Fix typo

* Global import

* how to run tests

* Missing models and tests (still broken)

* Wrong classes

* Missing __repr__ methods

* Tests now working and fixed a few bugs

* Fix fields nullability

* save_all()

* Move all Django models stuff to a separate Github repository

* Remove ghost packages

* Don't package tests anymore

* also, no more test suites in setup.py

* Reverted
* Deprecation decorator

* addendum
* Failing unit tests and implementation stub

* Rebase and add deprecations

* Nice, indeed

* Improve interface of ids_for and one more (failing) test

* Patch some city names as they were containing more than 1 comma

* Implementation and working tests for: ids_for()

* One more test

* Refactoring

* Implemented and tested: locations_for()
* Better README.md

* Move technical docs here from wiki

* Move contents to GitHub wiki

* Moved docs and included into setup.py as module
@csparpa csparpa merged commit 19e90c8 into master Dec 21, 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.

None yet

6 participants