mirror of https://github.com/home-assistant/core
32 lines
741 B
Python
32 lines
741 B
Python
"""Define constants for the Growatt Server component."""
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
CONF_PLANT_ID = "plant_id"
|
|
|
|
DEFAULT_PLANT_ID = "0"
|
|
|
|
DEFAULT_NAME = "Growatt"
|
|
|
|
SERVER_URLS = [
|
|
"https://openapi.growatt.com/", # Other regional server
|
|
"https://openapi-cn.growatt.com/", # Chinese server
|
|
"https://openapi-us.growatt.com/", # North American server
|
|
"https://openapi-au.growatt.com/", # Australia Server
|
|
"http://server.smten.com/", # smten server
|
|
]
|
|
|
|
DEPRECATED_URLS = [
|
|
"https://server.growatt.com/",
|
|
"https://server-api.growatt.com/",
|
|
"https://server-us.growatt.com/",
|
|
]
|
|
|
|
DEFAULT_URL = SERVER_URLS[0]
|
|
|
|
DOMAIN = "growatt_server"
|
|
|
|
PLATFORMS = [Platform.SENSOR]
|
|
|
|
LOGIN_INVALID_AUTH_CODE = "502"
|