🏡 Open source home automation that puts local control and privacy first.
Find a file
Philip Rosenberg-Watt d897a07d0b Fix Google Calendar caching when offline (#13375)
* Fix Google Calendar caching when offline

Events from Google Calendar were not firing under the following
circumstances:

1. Start ha as normal with Google Calendar configured as per
   instructions.
2. ha loses network connectivity to Google
3. ha attempts update of Google Calendar
4. calendar/google component throws uncaught Exception causing update
   method to not return
5. (cached) Google Calendar event does not fire, remains "Off"

Catching the Exception and returning False from the update() method
causes the correct behavior (i.e., the calendar component firing the
event as scheduled using cached data).

* Add requirements

* Revert code cleanup

* Remove explicit return value from update()

* Revert "Remove explicit return value from update()"

This reverts commit 7cd77708af.

* Use MockDependency decorator

No need to whitelist google-python-api-client for a single unit test at
this point.
2018-03-29 17:21:24 -07:00
.github New lazytox.py script (#12862) 2018-03-09 22:27:39 +02:00
docs Rename homeassistant.util.async to .async_ (#13088) 2018-03-11 10:01:12 -07:00
homeassistant Fix Google Calendar caching when offline (#13375) 2018-03-29 17:21:24 -07:00
script Use twine for release 2018-03-26 16:16:42 -07:00
tests Fix Google Calendar caching when offline (#13375) 2018-03-29 17:21:24 -07:00
virtualization Vagrant - sendfile python3.5 debian-stretch (#12454) 2018-02-15 21:53:10 -08:00
.coveragerc Add language parameter to darksky sensor (#13297) 2018-03-22 13:34:02 +01:00
.dockerignore Docker cleanup. (#8226) 2017-06-30 08:07:33 -07:00
.gitattributes Fix line endings [skipci] (#12333) 2018-02-11 23:07:28 -08:00
.gitignore Hue: Use the currently active color mode (#13376) 2018-03-23 11:01:40 -07:00
.hound.yml Add .hound.yml 2016-11-13 11:34:09 -08:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.travis.yml Pin lokalise script to working version (#12965) 2018-03-07 09:46:21 -05:00
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
CODE_OF_CONDUCT.md Add organization docs 2017-01-22 16:21:20 -08:00
CODEOWNERS Added cover.group platform (replaces #12303) (#12692) 2018-03-15 12:31:31 +01:00
CONTRIBUTING.md Fix guide link in CONTRIBUTING.md (#13272) 2018-03-16 21:13:32 +01:00
Dockerfile Change telldus domain to download.telldus.com (#11825) 2018-01-20 17:07:45 +01:00
LICENSE.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license 2017-01-28 12:12:34 -08:00
MANIFEST.in Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
pylintrc Upgrade pylint to 1.8.2 (#12274) 2018-02-11 09:20:28 -08:00
README.rst Remove links to gitter (#9155) 2017-08-27 11:30:26 +02:00
requirements_all.txt Bump frontend to 20180330.0 2018-03-29 17:00:16 -07:00
requirements_docs.txt Upgrade Sphinx to 1.7.1 (#13127) 2018-03-12 18:22:48 -07:00
requirements_test.txt Upgrade pytest to 3.4.2 (#13169) 2018-03-13 13:57:04 -07:00
requirements_test_all.txt Bump frontend to 20180330.0 2018-03-29 17:00:16 -07:00
setup.cfg Reorganize lint travis builds (#10670) 2017-11-19 17:39:24 -08:00
setup.py Upgrade async_timeout to 2.0.1 (#13290) 2018-03-17 17:37:31 -07:00
tox.ini Removed py34 (#12648) 2018-02-25 08:05:20 +01:00

Home Assistant |Build Status| |Coverage Status| |Chat Status|
=============================================================

Home Assistant is a home automation platform running on Python 3. It is able to track and control all devices at home and offer a platform for automating control.

To get started:

.. code:: bash

    python3 -m pip install homeassistant
    hass --open-ui

Check out `home-assistant.io <https://home-assistant.io>`__ for `a
demo <https://home-assistant.io/demo/>`__, `installation instructions <https://home-assistant.io/getting-started/>`__,
`tutorials <https://home-assistant.io/getting-started/automation-2/>`__ and `documentation <https://home-assistant.io/docs/>`__.

|screenshot-states|

Featured integrations
---------------------

|screenshot-components|

The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://home-assistant.io/developers/architecture/>`__ and the `section on creating your own
components <https://home-assistant.io/developers/creating_components/>`__.

If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.

.. |Build Status| image:: https://travis-ci.org/home-assistant/home-assistant.svg?branch=master
   :target: https://travis-ci.org/home-assistant/home-assistant
.. |Coverage Status| image:: https://img.shields.io/coveralls/home-assistant/home-assistant.svg
   :target: https://coveralls.io/r/home-assistant/home-assistant?branch=master
.. |Chat Status| image:: https://img.shields.io/discord/330944238910963714.svg
   :target: https://discord.gg/c5DvZ4e
.. |screenshot-states| image:: https://raw.github.com/home-assistant/home-assistant/master/docs/screenshots.png
   :target: https://home-assistant.io/demo/
.. |screenshot-components| image:: https://raw.github.com/home-assistant/home-assistant/dev/docs/screenshot-components.png
   :target: https://home-assistant.io/components/