core/homeassistant
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 Use HassKey for helpers (2) (#117013) 2024-05-07 11:24:13 -05:00
backports
brands
components Add Monzo integration (#101731) 2024-05-07 20:38:58 +02:00
generated Add Monzo integration (#101731) 2024-05-07 20:38:58 +02:00
helpers Improve issue_registry event typing (#117023) 2024-05-07 19:49:02 +02:00
scripts Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
util Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
__init__.py
__main__.py
block_async_io.py
bootstrap.py Use HassKey for setup and bootstrap (#116998) 2024-05-07 11:18:20 -05:00
config.py Use HassKey for setup and bootstrap (#116998) 2024-05-07 11:18:20 -05:00
config_entries.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
const.py Use HassKey for setup and bootstrap (#116998) 2024-05-07 11:18:20 -05:00
core.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
data_entry_flow.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
exceptions.py
loader.py Use HassKey for loader (#116999) 2024-05-07 18:37:01 +02:00
package_constraints.txt Update jinja2 to 3.1.4 (#116986) 2024-05-07 13:56:11 +02:00
py.typed
requirements.py Replace pylint broad-except with Ruff BLE001 (#116250) 2024-05-07 14:00:27 +02:00
runner.py Replace pylint protected-access with Ruff SLF001 (#115735) 2024-05-06 20:33:26 +02:00
setup.py Use HassKey for setup and bootstrap (#116998) 2024-05-07 11:18:20 -05:00
strings.json