hass-core/tests
Jake Martin 6e024d54f1
Add Monzo integration (#101731)
* Initial monzo implementation

* Tests and fixes

* Extracted api to pypi package

* Add app confirmation step

* Corrected data path for accounts

* Removed useless check

* Improved tests

* Exclude partially tested files from coverage check

* Use has_entity_name naming

* Bumped monzopy to 1.0.10

* Remove commented out code

* Remove reauth from initial PR

* Remove useless code

* Correct comment

* Remove reauth tests

* Remove device triggers from intial PR

* Set attr outside constructor

* Remove f-strings where no longer needed in entity.py

* Rename field to make clearer it's a Callable

* Correct native_unit_of_measurement

* Remove pot transfer service from intial PR

* Remove reauth string

* Remove empty fields in manifest.json

* Freeze SensorEntityDescription and remove Mixin

Also use list comprehensions for producing sensor lists

* Use consts in application_credentials.py

* Revert "Remove useless code"

Apparently this wasn't useless

This reverts commit c6b7109e47202f866c766ea4c16ce3eb0588795b.

* Ruff and pylint style fixes

* Bumped monzopy to 1.1.0

Adds support for joint/business/etc account pots

* Update test snapshot

* Rename AsyncConfigEntryAuth

* Use dataclasses instead of dictionaries

* Move OAuth constants to application_credentials.py

* Remove remaining constants and dependencies for services from this PR

* Remove empty manifest entry

* Fix comment

* Set device entry_type to service

* ACC_SENSORS -> ACCOUNT_SENSORS

* Make value_fn of sensors return StateType

* Rename OAuthMonzoAPI again

* Fix tests

* Patch API instead of integration for unavailable test

* Move pot constant to sensor.py

* Improve type safety in async_get_monzo_api_data()

* Update async_oauth_create_entry() docstring

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-05-07 20:38:58 +02:00
..
auth Index auth token ids to avoid linear search (#116583) 2024-05-05 16:47:26 -04:00
components Add Monzo integration (#101731) 2024-05-07 20:38:58 +02:00
fixtures Add script to compare alexa locales with upstream (#114247) 2024-04-18 13:41:34 +02:00
hassfest Fix placeholder quotes (#114974) 2024-04-06 13:01:56 +02:00
helpers Use HassKey for registries (#117000) 2024-05-07 18:03:14 +02:00
non_packaged_scripts Add script to compare alexa locales with upstream (#114247) 2024-04-18 13:41:34 +02:00
pylint Store runtime data inside ConfigEntry (#115669) 2024-04-30 11:29:43 +02:00
resources
script Generate requirements per supported architecture (#115708) 2024-04-22 19:23:08 +02:00
scripts Revert "Remove strict connection" (#116416) 2024-04-29 21:26:40 +02:00
snapshots Generate ConfigValidationError message from English translations (#113844) 2024-03-25 10:39:30 +01:00
test_util Enable Ruff RSE (#113695) 2024-03-18 00:40:38 +01:00
testing_config Remove unused legacy state translations (#112023) 2024-04-14 07:13:17 -04:00
util Add HassDict implementation (#103844) 2024-05-07 10:53:13 +02:00
__init__.py
common.py Add thread safety checks to async_create_task (#116339) 2024-04-28 18:29:00 -04:00
conftest.py Convert history tests to use async API (#116447) 2024-05-03 08:14:46 +02:00
ignore_uncaught_exceptions.py Improve logging of _TrackPointUTCTime objects (#116711) 2024-05-04 17:35:44 -05:00
patch_time.py Make freezegun find event.time_tracker_utcnow (#116284) 2024-04-27 07:08:56 -05:00
ruff.toml Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
syrupy.py Add State.last_reported (#113511) 2024-03-20 21:05:07 +01:00
test_backports.py Deprecated old backports and typing aliases (#114883) 2024-04-06 13:15:30 -10:00
test_block_async_io.py Detect blocking module imports in the event loop (#114488) 2024-03-30 19:51:31 -10:00
test_bootstrap.py Ensure mqtt handler is restored if its already registered in bootstrap test (#116549) 2024-05-01 20:22:18 +02:00
test_circular_imports.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
test_config.py Add debug mode to catch unsafe thread operations using core helpers (#115390) 2024-04-24 03:36:05 +02:00
test_config_entries.py Hold a lock to prevent concurrent setup of config entries (#116482) 2024-04-30 18:47:12 -05:00
test_const.py Improve loops and lists (#113269) 2024-03-14 10:22:20 +01:00
test_core.py Add thread safety checks to async_create_task (#116339) 2024-04-28 18:29:00 -04:00
test_data_entry_flow.py Ensure test async_create_task eager start behavior matches production (#115517) 2024-04-13 15:58:52 -05:00
test_exceptions.py Fix invalid tuple annotations (#116035) 2024-04-23 16:02:16 +02:00
test_loader.py Avoid falling back to event loop import on ModuleNotFound (#115404) 2024-04-11 16:32:47 -10:00
test_main.py Enable ruff RUF005 and fix occurrences (#113589) 2024-03-16 07:37:20 -10:00
test_requirements.py Switch out aiohttp-isal for aiohttp-fast-zlib to make isal optional (#116814) 2024-05-05 17:06:12 -04:00
test_runner.py Bump ruff to 0.3.4 (#112690) 2024-03-26 00:02:16 +01:00
test_setup.py Add HassDict implementation (#103844) 2024-05-07 10:53:13 +02:00
test_test_fixtures.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
typing.py Add test helper to remove device (#116234) 2024-04-28 18:50:15 +02:00