Add IoTaWatt integration (#55364)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
Greg 2021-08-30 12:52:29 -07:00 committed by GitHub
parent daa9c8d856
commit 3bd9be2f6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 778 additions and 0 deletions

View file

@ -0,0 +1,12 @@
"""Constants for the IoTaWatt integration."""
from __future__ import annotations
import json
import httpx
DOMAIN = "iotawatt"
VOLT_AMPERE_REACTIVE = "VAR"
VOLT_AMPERE_REACTIVE_HOURS = "VARh"
CONNECTION_ERRORS = (KeyError, json.JSONDecodeError, httpx.HTTPError)