Add Ondilo ico integration (#44728)

* First implementationof Ondilo component support

* Update manifest toadd pypi pkg dependency

* Update entities name and corrected refresh issue

* Changed percentage unit name

* Corrected merge issues

* Updated coveragerc

* cleaned up code and corrected config flow tests

* Code cleanup and added test for exisitng entry

* Changes following PR comments:
- Inherit CoordinatorEntity instead of Entity
- Merged pools blocking calls into one
- Renamed devices vars to sensors
- Check supported sensor types
- Stop relying on array index position for pools
- Stop relying on attribute position in dict for sensors

* Corrected unit test

* Reformat sensor type check
This commit is contained in:
JeromeHXP 2021-01-04 17:09:01 +01:00 committed by GitHub
parent c92353088c
commit de780c6d35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 514 additions and 0 deletions

View file

@ -0,0 +1,8 @@
"""Constants for the Ondilo ICO integration."""
DOMAIN = "ondilo_ico"
OAUTH2_AUTHORIZE = "https://interop.ondilo.com/oauth2/authorize"
OAUTH2_TOKEN = "https://interop.ondilo.com/oauth2/token"
OAUTH2_CLIENTID = "customer_api"
OAUTH2_CLIENTSECRET = ""