1
mirror of https://github.com/home-assistant/core synced 2024-09-06 10:29:55 +02:00
Go to file
alim4r 7d256f56c5
Refactor Prometheus tests (#60451)
* Removed prometheus from .coveragerc

* Update prometheus tests with handler categories

* Updated prometheus metrics to use the current registry
- don't use the registry created on import (needed for tests)

* Reset the prometheus CollectorRegistry before every test

* Update prometheus metrics generation
- Use latest registry when generating a response

* Add default collectors when resetting the registry

* Move entities to the specific prometheus test case

* Refactor body generation for prometheus tests

* Add test case for sensors without unit after rebase

* Fix prometheus tests
- Wait for events in prometheus tests
- Add workaround for demo platform dependecy conversation (aiohttp frozen router)

* Added prometheus tests for attribute metrics

* Added prometheus tests for binary_sensor

* Add prometheus test for input_boolean

* Add prometheus test for lights

* Add prometheus test for lock

* Add prometheus test for sensor fahrenheit conversion

* Fix prometheus test for input_number
2021-12-08 20:18:21 +01:00
.devcontainer VSCode switch to terminal.integrated.profiles (#54301) 2021-08-21 21:46:24 +02:00
.github Bump actions/upload-artifact from 2.2.4 to 2.3.0 (#61215) 2021-12-08 09:06:06 +01:00
.vscode Add slow tests list to VScode task code coverage (#60183) 2021-11-24 01:13:44 +01:00
docs Drop unused ruamel (#55672) 2021-09-03 22:17:10 -07:00
homeassistant Refactor Prometheus tests (#60451) 2021-12-08 20:18:21 +01:00
machine Update base image 2021.11.0 (#60227) 2021-11-24 09:48:34 +01:00
pylint/plugins Pylint plugin to check that relative imports are used (#50937) 2021-05-22 09:15:30 +01:00
rootfs Pass exit code to s6-init (#59545) 2021-11-14 16:56:09 +01:00
script Block pytest_asyncio (#61141) 2021-12-06 22:07:56 -08:00
tests Refactor Prometheus tests (#60451) 2021-12-08 20:18:21 +01:00
.core_files.yaml Run partial test suite in CI if core untouched (#60230) 2021-11-23 14:57:45 -08:00
.coveragerc Refactor Prometheus tests (#60451) 2021-12-08 20:18:21 +01:00
.dockerignore Integrate dockerbuild (#33168) 2020-03-23 00:39:37 +01:00
.gitattributes highlight Dockerfile.dev as Dockerfile in github ui (#36933) 2020-06-22 14:45:57 +02:00
.gitignore Ignore config directory symlink in development (#56639) 2021-09-25 12:53:41 +02:00
.hadolint.yaml Add hadolint to CI (#34758) 2020-04-27 12:09:31 +02:00
.ignore Include .ignore file for search utilities (#5290) 2017-01-16 22:52:53 -08:00
.pre-commit-config.yaml Revert "Add Open-Meteo integration (#60379)" (#61130) 2021-12-06 23:35:14 +01:00
.prettierignore Rename translations dir for integrations (#34494) 2020-04-21 16:11:05 -07:00
.readthedocs.yml Drop remaining Python < 3.8 support (#44743) 2021-01-04 11:47:29 +01:00
.strict-typing Revert "Add Open-Meteo integration (#60379)" (#61130) 2021-12-06 23:35:14 +01:00
.yamllint Add yamllint (in pre-commit and CI) (#33676) 2020-04-05 10:33:45 +02:00
build.yaml Update base image 2021.11.0 (#60227) 2021-11-24 09:48:34 +01: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 Update Code of Conduct to 2.0 (#36142) 2020-05-25 19:40:40 -04:00
codecov.yml Guard config flow coverage in Codecov (#60718) 2021-12-01 12:52:08 +01:00
CODEOWNERS Elmax integration (#59321) 2021-12-07 22:42:55 +01:00
CONTRIBUTING.md Use core GitHub URL in contributing guidelines (#41083) 2020-10-02 20:42:33 +02:00
Dockerfile Extend Docker build caching opportunities (#60661) 2021-12-01 13:20:00 +01:00
Dockerfile.dev Extend Docker build caching opportunities (#60661) 2021-12-01 13:20:00 +01:00
LICENSE.md Update license to official GitHub template (#16470) 2018-09-07 10:11:51 +02:00
MANIFEST.in Consolidate frontend (#9915) 2017-10-24 19:36:27 -07:00
mypy.ini Revert "Add Open-Meteo integration (#60379)" (#61130) 2021-12-06 23:35:14 +01:00
pyproject.toml Upgrade pylint to 2.12.1 (#60375) 2021-11-26 00:13:27 +01:00
README.rst Update README.rst to avoid redirects (#44519) 2020-12-26 10:05:41 +01:00
requirements_all.txt Add local access for Adax (#60019) 2021-12-07 16:48:16 -10:00
requirements_docs.txt Refactor API documentation (#33217) 2020-03-25 13:21:04 -07:00
requirements_test_all.txt Add local access for Adax (#60019) 2021-12-07 16:48:16 -10:00
requirements_test_pre_commit.txt Upgrade black to 21.11b1 (#60532) 2021-11-29 11:51:58 +01:00
requirements_test.txt Upgrade pre-commit to 2.16.0 (#60680) 2021-12-01 08:43:37 +01:00
requirements.txt Upgrade aiohttp to 3.8.1 (#60778) 2021-12-01 19:45:16 +01:00
setup.cfg Don't ignore mypy errors by default (#49270) 2021-04-26 14:23:21 +02:00
setup.py Upgrade aiohttp to 3.8.1 (#60778) 2021-12-01 19:45:16 +01:00
tox.ini Remove -bb option from tox and ci (#59846) 2021-11-18 13:23:25 +08:00

Home Assistant |Chat Status|
=================================================================================

Open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server.

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/>`__ 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://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.

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.

.. |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/integrations/