Add IoTaWatt integration (#55364)
Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
parent
daa9c8d856
commit
3bd9be2f6d
17 changed files with 778 additions and 0 deletions
12
homeassistant/components/iotawatt/const.py
Normal file
12
homeassistant/components/iotawatt/const.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue