* chore(sunweg): minor requested changes * test(sunweg): use of fixtures * feat(sunweg): provide bad auth result on expired authentication * chore(sunweg): bump version * chore(sunweg): removed reauth * chore(sunweg): removed features out of scope * chore(sunweg): fixtures moved to conftest.py * chore(sunweg): devicetype moved to const * chore(sunweg): conftest comment Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
24 lines
356 B
Python
24 lines
356 B
Python
"""Define constants for the Sun WEG component."""
|
|
from enum import Enum
|
|
|
|
from homeassistant.const import Platform
|
|
|
|
|
|
class DeviceType(Enum):
|
|
"""Device Type Enum."""
|
|
|
|
TOTAL = 1
|
|
INVERTER = 2
|
|
PHASE = 3
|
|
STRING = 4
|
|
|
|
|
|
CONF_PLANT_ID = "plant_id"
|
|
|
|
DEFAULT_PLANT_ID = 0
|
|
|
|
DEFAULT_NAME = "Sun WEG"
|
|
|
|
DOMAIN = "sunweg"
|
|
|
|
PLATFORMS = [Platform.SENSOR]
|