diff --git a/atom.xml b/atom.xml index 828aef675a..6d123b1a19 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/community/atom.xml b/blog/categories/community/atom.xml index 3c7df009eb..da135a6c60 100644 --- a/blog/categories/community/atom.xml +++ b/blog/categories/community/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Community | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/device-tracking/atom.xml b/blog/categories/device-tracking/atom.xml index 46b95323ee..1fbdb0526b 100644 --- a/blog/categories/device-tracking/atom.xml +++ b/blog/categories/device-tracking/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Device-Tracking | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/esp8266/atom.xml b/blog/categories/esp8266/atom.xml index 4ffeee19e9..7feb35432d 100644 --- a/blog/categories/esp8266/atom.xml +++ b/blog/categories/esp8266/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: ESP8266 | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/how-to/atom.xml b/blog/categories/how-to/atom.xml index 61db1b0caa..d106482073 100644 --- a/blog/categories/how-to/atom.xml +++ b/blog/categories/how-to/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: How-To | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/ibeacons/atom.xml b/blog/categories/ibeacons/atom.xml index 01d6cd3701..732d560df2 100644 --- a/blog/categories/ibeacons/atom.xml +++ b/blog/categories/ibeacons/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: iBeacons | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/internet-of-things/atom.xml b/blog/categories/internet-of-things/atom.xml index cb0dc342c1..94d1e937ac 100644 --- a/blog/categories/internet-of-things/atom.xml +++ b/blog/categories/internet-of-things/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Internet-of-Things | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/iot-data/atom.xml b/blog/categories/iot-data/atom.xml index a4c50eb4ea..a3c82da76d 100644 --- a/blog/categories/iot-data/atom.xml +++ b/blog/categories/iot-data/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: IoT-Data | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/micropython/atom.xml b/blog/categories/micropython/atom.xml index 04d491f9a8..c58f05be27 100644 --- a/blog/categories/micropython/atom.xml +++ b/blog/categories/micropython/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Micropython | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/mqtt/atom.xml b/blog/categories/mqtt/atom.xml index fd5c6f3dd0..0f9cacec78 100644 --- a/blog/categories/mqtt/atom.xml +++ b/blog/categories/mqtt/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: MQTT | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/organisation/atom.xml b/blog/categories/organisation/atom.xml index d6a19879f7..c9d0fe7fad 100644 --- a/blog/categories/organisation/atom.xml +++ b/blog/categories/organisation/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Organisation | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/owntracks/atom.xml b/blog/categories/owntracks/atom.xml index 9914a1ca27..5bc9485de5 100644 --- a/blog/categories/owntracks/atom.xml +++ b/blog/categories/owntracks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: OwnTracks | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/presence-detection/atom.xml b/blog/categories/presence-detection/atom.xml index 985aeede4e..431a050ddb 100644 --- a/blog/categories/presence-detection/atom.xml +++ b/blog/categories/presence-detection/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Presence-Detection | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/public-service-announcement/atom.xml b/blog/categories/public-service-announcement/atom.xml index 358d1fec71..5c709b6239 100644 --- a/blog/categories/public-service-announcement/atom.xml +++ b/blog/categories/public-service-announcement/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Public-Service-Announcement | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/release-notes/atom.xml b/blog/categories/release-notes/atom.xml index 51566cbb97..51c7cb07df 100644 --- a/blog/categories/release-notes/atom.xml +++ b/blog/categories/release-notes/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Release-Notes | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/survey/atom.xml b/blog/categories/survey/atom.xml index 388c56b2db..b26356d27f 100644 --- a/blog/categories/survey/atom.xml +++ b/blog/categories/survey/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Survey | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/talks/atom.xml b/blog/categories/talks/atom.xml index eb4a69fdb9..5de97fd46d 100644 --- a/blog/categories/talks/atom.xml +++ b/blog/categories/talks/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Talks | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/technology/atom.xml b/blog/categories/technology/atom.xml index b51af41dbe..345ff1ceaf 100644 --- a/blog/categories/technology/atom.xml +++ b/blog/categories/technology/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Technology | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/user-stories/atom.xml b/blog/categories/user-stories/atom.xml index 73e073396e..8d17935811 100644 --- a/blog/categories/user-stories/atom.xml +++ b/blog/categories/user-stories/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: User-Stories | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/video/atom.xml b/blog/categories/video/atom.xml index bdbac8d952..80da23837e 100644 --- a/blog/categories/video/atom.xml +++ b/blog/categories/video/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Video | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/blog/categories/website/atom.xml b/blog/categories/website/atom.xml index 19306529fc..d16134e6fa 100644 --- a/blog/categories/website/atom.xml +++ b/blog/categories/website/atom.xml @@ -4,7 +4,7 @@ <![CDATA[Category: Website | Home Assistant]]> - 2016-10-04T20:03:44+00:00 + 2016-10-04T20:09:01+00:00 https://home-assistant.io/ diff --git a/developers/development_checklist/index.html b/developers/development_checklist/index.html index 629de317b8..8b94514709 100644 --- a/developers/development_checklist/index.html +++ b/developers/development_checklist/index.html @@ -7,26 +7,26 @@ - Checklist - Home Assistant + Development Checklist - Home Assistant - + - + - + - - + + @@ -83,19 +83,23 @@

- Checklist + Development Checklist


-

After you finish your work:

+

Before you commit any changes, check your work against these requirements:

    -
  • Check that all dependencies are included via the REQUIREMENTS variable in your platform/component and only imported inside functions that use them.
  • -
  • Add any new dependencies to requirements_all.txt if needed. Use script/gen_requirements_all.py.
  • -
  • Update the .coveragerc file to exclude your platform if there are no tests available or your new code uses a 3rd party library for communication with the device/service/sensor.
  • -
  • Provide some documentation for home-assistant.io. It’s OK to just add a docstring with configuration details (sample entry for configuration.yaml file and alike) to the file header as a start. Visit the website documentation for further information on contributing to home-assistant.io.
  • +
  • All dependencies are included via the REQUIREMENTS variable in your platform or component and only imported inside functions that use them
  • +
  • New dependencies are added to requirements_all.txt (if applicable), using script/gen_requirements_all.py
  • +
  • The .coveragerc file is updated to exclude your platform if there are no tests available or your new code uses a third-party library for communication with the device, service, or sensor
  • +
  • Documentation is developed for home-assistant.io +
      +
    • It’s OK to start with adding a docstring with configuration details (for example, sample entry for configuration.yaml file) to the file header. Visit the website documentation for more information about contributing to home-assistant.io.
    • +
    +
diff --git a/developers/development_submitting/index.html b/developers/development_submitting/index.html index 140e628668..2cdd81b0c9 100644 --- a/developers/development_submitting/index.html +++ b/developers/development_submitting/index.html @@ -109,14 +109,11 @@

git add .

git commit -m "Added some-feature"

+ +
    +
  • Consider adding tests to ensure that your code works.
  • +
- - -
    -
  • Consider adding tests to ensure that your code works.
  • -
- -
  1. Push your committed changes back to your fork on GitHub:

    diff --git a/developers/development_testing/index.html b/developers/development_testing/index.html index 82c0f944b2..809dcd4c2a 100644 --- a/developers/development_testing/index.html +++ b/developers/development_testing/index.html @@ -89,31 +89,31 @@
    -

    Home Assistant enforces strict PEP8 style compliance on all code submitted. Every Pull Request is automatically tested with Coveralls and Travis CI after it is created.

    +

    Home Assistant enforces strict PEP8 style compliance on all code submitted. We automatically test every pull request with Coveralls and Travis CI.

    Local testing

    -

    It’s highly recommended to run tox before you create your Pull Request to avoid annoying fixes. Local testing requires tox to be installed.

    +

    Important: Run tox before you create your pull request to avoid annoying fixes. Local testing requires installing tox.

    $ pip3 install tox
     
    -

    Start the test of your code with tox.

    +

    Start your code test with tox.

    $ tox
     
    -

    This will run unit tests against python 3.4 and 3.5 (if both are available locally), as well as run a set of tests which validate pep8 and pylint style of the code.

    +

    This will run unit tests against Python 3.4 and 3.5 (if both are available locally), as well as tests that validate pep8 and pylint style.

    Testing Tips

    -

    You can optionally run tests on only one tox target using the -e option to select an environment. For instance tox -e lint will run the linters only, tox -e py34 will run unit tests only on python 3.4.

    +

    You can run tests on only one tox target – just use -e to select an environment. For example, tox -e lint runs the linters only, and tox -e py34 runs unit tests only on Python 3.4.

    -

    Tox uses virtual environments under the hood to create isolated testing environments. The Tox virtual environments will get out date when requirements change causing test errors. Run tox -r to create new Tox virtual environments.

    +

    tox uses virtual environments under the hood to create isolated testing environments. The tox virtual environments will get out-of-date when requirements change, causing test errors. Run tox -r to create new tox virtual environments.

    -

    During development on a specific file, it can speed up your workflow to just run tests and linting related to the file that you’re working on. To run individual files:

    +

    During development on a specific file, speed up your workflow by running tests and linting only for the file that you’re working on. To run individual files:

    $ flake8 homeassistant/core.py
     $ pylint homeassistant/core.py
    @@ -121,27 +121,26 @@
     
    -

    You also run linting tests against all changed files, as reported by git diff upstream/dev --name-only using the lint script:

    +

    You can also run linting tests against all changed files, as reported by git diff upstream/dev --name-only, using the lint script:

    home-assistant$ script/lint --changed
     
    -

    Prevent Linter Errors

    +

    Preventing Linter Errors

    -

    You can save yourself the hassle of extra commits just to fix style errors by enabling the flake8 git commit hook. It will check your code when you attempt to commit to the repository. It will block the commit if there are any style issues, giving you a chance to fix it.

    +

    Save yourself the hassle of extra commits just to fix style errors by enabling the Flake8 git commit hook. Flake8 will check your code when you try to commit to the repository and block the commit if there are any style errors, which gives you a chance to fix them!

    $ pip3 install flake8 flake8-docstrings
     $ flake8 --install-hook=git
     
    -

    The flake8-docstrings extension will check docstrings according to PEP257 when running flake8.

    +

    The flake8-docstrings extension will check docstrings according to PEP257 when running Flake8.

    Notes on PyLint and PEP8 validation

    -

    In case a PyLint warning cannot be avoided, add a comment to disable the PyLint check for that line. This can be done using the format # pylint: disable=YOUR-ERROR-NAME. Example of an unavoidable PyLint warning is if you do not use the passed in datetime if you’re listening for time change.

    - +

    If you can’t avoid a PyLint warning, add a comment to disable the PyLint check for that line with # pylint: disable=YOUR-ERROR-NAME. An example of an unavoidable PyLint warning is not using the passed-in datetime if you’re listening for a time change.

    diff --git a/sitemap.xml b/sitemap.xml index 5cf894f5bd..5b4d72cd70 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2113,62 +2113,62 @@ https://home-assistant.io/demo/frontend.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/index.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-event.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-info.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-service.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-state.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-dev-template.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-history.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-iframe.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-logbook.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/demo/panels/ha-panel-map.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/googlef4f3693c209fe788.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/static/fonts/roboto/DESCRIPTION.en_us.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/static/fonts/robotomono/DESCRIPTION.en_us.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00 https://home-assistant.io/static/mdi-demo.html -2016-10-04T20:03:00+00:00 +2016-10-04T20:08:12+00:00