🏡 Open source home automation that puts local control and privacy first
Clone or download
ehendrix23 and MartinHjelmare Fix mold_indicator errors at startup (#17346)
* Initial changes to resolve issue 16733

Added logic to ensure that if the state is unknown during startup that the error about being unable to parse the value is not logged.
Further,  also ensured that if an attribute is set to None it does not try to convert the None value to Fahrenheit as that will cause an error.

* Cleaned up and added few comments

Cleaned up some lines based on flake8 and pylint.
Added some comment lines on the items added.

* Changed to async and using async_added_to_hass

Changed sensor to use async.
Registering state tracking for sensors and initial setup is now done upon the home assistant start event.

* Updated test and small fix

Updated test to handle unavailable state of sensor and return of None for attributes when data is unavailable.
Ensured that atributes are set to None when state is unavailable due to incorrect data.

* Fixed some flake8 issues in test

Fixed some flake8 issues in test_moldindicator.py.

* Updates based on review

Updates based on review from MartinHjelmare

* Added sensor entity_id to logger errors

Added sensor entity_id to logger error messages
Update test to use constant STATE_UNKNOWN instead of fixed string.
Latest commit daf9d28 Oct 17, 2018
Permalink
Failed to load latest commit information.
.github Updates documentation repo URL in PR template (#16537) Sep 10, 2018
docs Update developer doc links to developers.home-assistant.io (#16622) Sep 15, 2018
homeassistant Fix mold_indicator errors at startup (#17346) Oct 17, 2018
script Adding id to lovelace cards in ui-lovelace.yaml (#17498) Oct 17, 2018
tests Fix mold_indicator errors at startup (#17346) Oct 17, 2018
virtualization Update Vagrant Windows support (#17205) Oct 13, 2018
.coveragerc New climate device (#17313) Oct 14, 2018
.dockerignore Docker cleanup. (#8226) Jun 30, 2017
.gitattributes Fix line endings [skipci] (#12333) Feb 12, 2018
.gitignore Add script to run monkeytype typing on test suite (#14440) Jun 21, 2018
.hound.yml Add .hound.yml Nov 13, 2016
.ignore Include .ignore file for search utilities (#5290) Jan 17, 2017
.isort.cfg Add isort configuration (#15278) Jul 3, 2018
.travis.yml Try to fix coveralls unstable result (#15800) Aug 6, 2018
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license Jan 28, 2017
CODEOWNERS UniFi POE control (#17011) Oct 16, 2018
CODE_OF_CONDUCT.md Add organization docs Jan 23, 2017
CONTRIBUTING.md Update developer doc links to developers.home-assistant.io (#16622) Sep 15, 2018
Dockerfile remove-phantomjs-from-docker (#15936) Aug 14, 2018
LICENSE.md Update license to official GitHub template (#16470) Sep 7, 2018
MANIFEST.in Consolidate frontend (#9915) Oct 25, 2017
README.rst Update developer doc links to developers.home-assistant.io (#16622) Sep 15, 2018
mypy.ini Disable assuming Optional type for values with None default (#16029) Aug 17, 2018
pylintrc Make pylint report non-LF linefeeds per the style guidelines (#16601) Sep 19, 2018
requirements_all.txt Adding id to lovelace cards in ui-lovelace.yaml (#17498) Oct 17, 2018
requirements_docs.txt Upgrade Sphinx to 1.7.8 (#16459) Sep 6, 2018
requirements_test.txt Upgrade pytest to 3.8.2 (#17125) Oct 4, 2018
requirements_test_all.txt Adding id to lovelace cards in ui-lovelace.yaml (#17498) Oct 17, 2018
setup.cfg Add Python 3.7 classifier (#16645) Sep 24, 2018
setup.py Upgrade aiohttp to 3.4.4 (#16486) Sep 10, 2018
tox.ini Fail if dirty (#16839) Sep 25, 2018

README.rst

Home Assistant Build Status Coverage Status Chat Status Reviewed by Hound

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:

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

Check out home-assistant.io for a demo, installation instructions, tutorials and documentation.

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 and the section on creating your own components.

If you run into issues while using Home Assistant or during development of a component, check the Home Assistant help section of our website for further help and information.