core/homeassistant/util
Ties de Kock 4004867eda Split up yaml loaders into multiple files (#23774)
* Start moving parts of yaml utils to own module

Move parts of yaml loader out of the single large file and start
to create the structure of the yaml loaders in Ansible [0].

[0]: https://github.com/ansible/ansible/tree/devel/lib/ansible/parsing/yaml

* Finish yaml migration, update tests and mocks

  * Move code around to finish the migration
  * Update the mocks so that `open` is patched in
    `homeassistant.util.yaml.loader` instead of
    `homeassistant.util.yaml`.
  * Updated mypy ignores
  * Updated external API of `homeasistant.util.yaml`, see below:

Checked what part of the api of `homeassistant.util.yaml` was actually
called from outside the tests and added an `__ALL__` that contains only
these elements.

Updated the tests so that references to internal parts of the API (e.g.
the yaml module imported into `homeassistant.util.yaml.loader`) are
referenced directly from `homeassistant.util.yaml.loader`.

In `tests/test_yaml.py` the import `yaml` refers to
`homeassistant.util.yaml` and `yaml_loader` refers to `~.loader`.

Future work that remains for the next iteration is to create a custom
SafeConstructor and refers to that instead of monkey patching `yaml` with
custom loaders.

* Update mocks in yaml dumper, check_config
2019-05-09 09:07:56 -07:00
..
yaml Split up yaml loaders into multiple files (#23774) 2019-05-09 09:07:56 -07:00
__init__.py Load as many components in parallel as possible (#20806) 2019-02-07 22:56:40 +01:00
aiohttp.py Fix cloud webhook body (#20739) 2019-02-04 10:58:38 -08:00
async_.py Upgrade mypy to 0.650 (#19150) 2018-12-09 21:22:08 +02:00
color.py Upgrade mypy (#23586) 2019-05-02 21:18:20 +03:00
decorator.py Upgrade pylint to 2.0.1 (#15683) 2018-07-26 08:55:42 +02:00
distance.py Add unit system support 2016-08-04 22:02:19 -07:00
dt.py Make async_track_time_change smarter (#17199) 2018-10-09 10:14:18 +02:00
json.py Restore states through a JSON store instead of recorder (#17270) 2018-11-28 13:16:43 +01:00
location.py No longer rely on requests (#23685) 2019-05-08 11:15:04 -07:00
logging.py Improve logging of exceptions in async_create_task (#22689) 2019-04-29 09:53:22 -07:00
network.py Add webhook + IFTTT example (#16817) 2018-09-30 14:45:48 +02:00
package.py Isort preparations (#16555) 2018-09-11 11:21:48 +02:00
pressure.py Fix pressure in dark sky and openweathermap and add pressure utility (#21210) 2019-03-24 18:37:31 +01:00
ruamel_yaml.py Add save command to lovelace (#18655) 2018-11-23 22:56:58 +01:00
ssl.py Switch to intermediate Mozilla cert profile (#15957) 2018-08-14 08:20:17 +02:00
temperature.py Pylint cleanups (#15626) 2018-07-23 10:16:05 +02:00
unit_system.py Fix pressure in dark sky and openweathermap and add pressure utility (#21210) 2019-03-24 18:37:31 +01:00
volume.py Enable BMW component to be unit system aware (#17197) 2018-10-11 10:55:22 +02:00