* Add DSMR Reader sensor tests
* Change to paramatization
* Removing patch
* Emulate the test
* Go for 100% test coverage
* Adding defintions.py
* Add myself as code owner to keep improving
* Update AlarmDecoder component to newer model
This commit makes AlarmDecoder operate as a proper device entity following the new model introduced a few years ago.
Code also has an internal dependency on a newer version of adext (>= 0.4.3) which has been updated correspondingly.
* Created AlarmDecoder entity
Added an alarmdecoder entity so the device_info can be re-used across the integration
* Move _attr_has_entity_name to base entity
As per code review suggestion, clean up the object model.
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Missed one suggestion with the prior commit
Moves _attr_has_entity_name to base entity
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Address some ruff issues
* Apply additional ruff cleanups
Ran ruff again to clean up a few files tat weren't picked up last time
* Apply suggestions from code review
Some additional cleanup of style & removal of unnecessary code
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Properly generated the integration file
generation had to happen twice for this to work. Now that it's generated, I'm including the missing update.
* Apply suggestions from code review
Use local client variable instead of self._client
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Sort the manifest
documentation was added, but it wasn't sorted properly in the key/value pairs
* Add alarmdecoder entity file to coverage ignore file
Added the alarmdecoder entity file so it is ignored for coverage
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
* Cleanup for apsystems and fix for strings
* Migrate to typed ConfigEntry Data for apsystems
* Improve strings for apsystems
* Improve config flow tests for apsystems by cleaning up fixtures
* Do not use Dataclass for Config Entry Typing
* Improve translations for apsystems by using sentence case and removing an apostrophe
* Rename test fixture and remove unnecessary comment in tests from apsystems
* Remove default override with default in coordinator from apsystems
* Add APsystems local API integration
* Fix session usage in config_flow in apsystems local api
* Remove skip check option for apsystems_loca api
* Update APsystems API dependency and increased test coverage to 100%
* Utilize EntityDescriptions for APsystems Local integration
* Ensure coverage entries are sorted (#114424)
* Ensure coverage entries are sorted
* Use autofix
* Adjust
* Add comment to coverage file
* test CI
* revert CI test
---------
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
* Use patch instead of Http Mocks for APsystems API tests
* Fix linter waring for apsystemsapi
* Fix apsystemsapi test
* Fix CODEOWNERS for apsystemsapi
* Address small PR review changes for apsystems_local
* Remove wrong lines in coveragerc
* Add serial number for apsystems_local
* Remove option of custom refresh interval fro apsystems_local
* Remove function override and fix stale comments
* Use native device id and name storage instead of custom one for apsystems_local
* Use runtime_data for apsystems_local
* Don't store entry data in runtime data
* Move from apsystems_local to apsystems domain
---------
Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
* Migrate tibber notify service
* Tests and repair flow
* Use notify repair flow helper
* Cleanup strings after using helper, use HomeAssistantError
* Add entry state assertions to unload test
* Update comment
* Update comment
* 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>