mirror of
https://github.com/home-assistant/core.git
synced 2026-04-20 17:04:41 +00:00
Co-authored-by: xiaozhouhhh <13588112144@163.com> Co-authored-by: Joostlek <joostlek@outlook.com>
24 lines
442 B
Python
24 lines
442 B
Python
"""Constants for the solarman integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
DOMAIN = "solarman"
|
|
DEFAULT_PORT = 8080
|
|
UPDATE_INTERVAL = timedelta(seconds=30)
|
|
PLATFORMS = [
|
|
Platform.SENSOR,
|
|
]
|
|
|
|
CONF_SERIAL = "serial"
|
|
CONF_SN = "sn"
|
|
CONF_FW = "fw"
|
|
CONF_PRODUCT_TYPE = "product_type"
|
|
|
|
MODEL_NAME_MAP = {
|
|
"SP-2W-EU": "Smart Plug",
|
|
"P1-2W": "P1 Meter Reader",
|
|
"gl meter": "Smart Meter",
|
|
}
|