Add Epion integration (#107570)

* Adding initial Epion Air integration logic

* Skipping sensors with missing data

* Patching Epion integration

* Adding additional Epion measurement types

* Cleaning up logging

* Cleaning up code

* Fixing error handling for invalid Epion keys

* Adding tests and improving error handling

* Patching Epion tests

* Cleaning up Epion integration code

* Bumping Epion package and including missing files

* Moving data updates to coordinator and addressing feedback

* Improve exception handling

* Exposing model name and firmware version

* Cleaning up code according to review

* Cleaning up code according to review

* Adding check to prevent duplicate account setup

* Refactoring tests and checking for duplicates

* Cleaning up test code according to review

* Cleaning up test code

* Removing entity name overrides

* Fix code format for tests

* Adding missing newlines in JSON files

* Fixing formatting

* Updating device method to always return a device

* Updating coordinator
This commit is contained in:
Leendert Gravendeel 2024-01-16 06:39:50 +01:00 committed by GitHub
parent e8b962ea89
commit 5011a25ea6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 452 additions and 0 deletions

View file

@ -0,0 +1,5 @@
"""Constants for the Epion API."""
from datetime import timedelta
DOMAIN = "epion"
REFRESH_INTERVAL = timedelta(minutes=1)